If you use tomee.xml or resources.xml yes, if you don't use the built-in factory then you need to handle it yourself
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:25 GMT+02:00 chongma <matthew.broadh...@nbmlaw.co.uk>: > so looking at line 31: > final String password = properties.getProperty("password"); > > that might mean the password should be passed as: > p.put("password", "smtppassword"); > > and it is not necessary to pass an Authenticator with > PasswordAuthentication? > > > > -- > Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev- > f982480.html >