Description
Based on:
http://openejb.979440.n4.nabble.com/javax-mail-Session-resource-and-smtp-authentication-td4322915.html
http://openejb.979440.n4.nabble.com/JavaMail-Session-with-Authentication-tp4657144.html
javax.mail.Session resources created by TomEE do not use the provided authentication parameters.
With the instructions from http://tomee.apache.org/configuring-javamail.html, the password property is not taken into account.
According to JavaMail's javadoc (http://javamail.kenai.com/nonav/javadocs/com/sun/mail/smtp/package-summary.html), a PasswordAuthenticator instance should be passed to Session.getInstance() when retrieving the javamail session.