In order to avoid be spammed to death I am keeping any email address off my website and only giving the user a HTML form to fill out with a backing Servlet. Then in the Servlet I am sending an email using a external email service provider, back to the appropriate person at their corporate email address. The external email service provider requires a SSL/TLS connection on port 465. There is no example on the TomEE examples page (https://tomee.apache.org/examples-trunk/index.html) for this use case. The only thread on the users form that I found is this three year old one (http://tomee-openejb.979440.n4.nabble.com/Not-loading-smtps-resource-properly-td4664442.html#a4664460). There is a lot of back and forth about trying this then that then it worked, O, not it didn't really work, etc.....

Please consider creating a JavaMail SSL/TLS Servlet example.

Reply via email to