users@glassfish.java.net

Re: JavaMail session (Additional Properties??)

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Feb 2009 17:11:58 PST

Hi !!!

Thanks a lot, you saved a lot of time.

First i was with the problem with de bug 4500 https://glassfish.dev.java.net/issues/show_bug.cgi?id=4500

I was able to resolve that with

                Context ctx = null;
                ctx = new InitialContext();
                MailConfiguration mcfg = (MailConfiguration)ctx.lookup("gmail");
                Properties props = mcfg.getMailProperties();
                session = Session.getInstance(props);

And with your post i was able to pass al 17 more properties i need.

Lot of Thanks,
[Message sent by forum member 'neoecos' (neoecos)]

http://forums.java.net/jive/thread.jspa?messageID=331176