I have followed multiple links and still can not get the smtp connection to work. I have a jira docker published by atlassian. I have tried JNDI configuration with the following
<Resource name="mail/SmtpServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="ericstuck.com"
mail.smtp.port="587"
mail.transport.protocol="smtp"
mail.smtp.auth="true"
mail.smtp.user="eric@ericstuck.com"
password="***********"
mail.smtp.starttls.enable="true"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
and still get the following
IllegalArgumentException: Mail server at location [java:comp/env/mail/SmtpServer] is not of required type javax.mail.Session.
I have also seen that mail.x.x.x.jar and activation-1.1.1.jar are not in the lib or /WEB-INF/lib.