« Return to Thread: Setting up JavaMail datasource with SSL, username and password

Re: Setting up JavaMail datasource with SSL, username and password

by Ryan de Laplante :: Rate this Message:

Reply to Author | View in Thread

Dave wrote:

> On Mon, Jun 30, 2008 at 10:50 PM, Ryan de Laplante <ryan@...> wrote:
>  
>> I found this example on the net:
>>       Properties props = new Properties();
>>       props.put("mail.smtp.host", "smtp.gmail.com");
>>       props.put("mail.smtp.auth", "true");
>>       props.put("mail.smtp.port", "465");
>>       props.put("mail.smtp.socketFactory.port", "465");
>>       props.put("mail.smtp.socketFactory.class",
>> "javax.net.ssl.SSLSocketFactory");
>>       props.put("mail.smtp.socketFactory.fallback", "false");
>>       props.put("mail.debug", "true");
>>    
>
> Nice. Sounds like we need to allow those same properties to be
> specified in roller-custom.properties. I think the code that
> reads/reacts to mail property settings is all in a single
> "MailProvider" class, so it would be easy to patch ;-)
>
> - Dave
>
>  
I think this will be very helpful:

http://forums.java.net/jive/message.jspa?messageID=283824#283824

I will be giving it a try on GlassFish tonight.


Ryan


 « Return to Thread: Setting up JavaMail datasource with SSL, username and password