if you want to propose a patch (you are pretty close to it ;)) here is the class to patch: http://svn.apache.org/repos/asf/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java
*Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/8/31 Anthony Fryer <apfr...@hotmail.com> > Thanks for raising the JIRA. It would be nice to get the smtp > authentication > built into tomee. > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/JavaMail-Session-with-Authentication-tp4657144p4657175.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >