For reference there can be some config changes after the 1.9 upgrade (
https://issues.apache.org/jira/browse/TOMEE-1697). Would be good to ensure
1. you authenticator is actually called (if the LOGIN fails it can be it
read the password from the session properties where it is not. FYI here is
how tomee instantiate sessions
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java
(which is not the case if you use context.xml)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-09-01 9:00 GMT+02:00 chongma <matthew.broadh...@nbmlaw.co.uk>:

> is the server protected by TLS or SSL?  or is it open?
>
> if SSL protected have you tried:
> p.put("mail.smtp.auth", "true");
> p.put("mail.smtp.ssl.enable", "true");
>
> Also have you tried loading Mail Session as a Resource in context.xml (or
> tomee.xml) as per my previous example?  I didn't have much luck configuring
> it the way you are describing.
>
> Regards,
> Matthew
>
>
>
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-
> f982480.html
>

Reply via email to