bbottema / simple-java-mail

Simple API, Complex Emails (Jakarta Mail smtp wrapper)

Home Page:http://www.simplejavamail.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow extra Session properties configured through simplejavamail.properties

bbottema opened this issue · comments

Currently the only way to add properties to the underlying Session instance is by using the Java api myMailer.getSession().

It would be convenient to be able to configure default extra properties through the simplejavamail.properties file:

simplejavamail.extraproperties.this.is.the.actual.property=this is the value

Real world example that will soon be supported natively by Simple Java Mail:

simplejavamail.extraproperties.mail.smtp.ssl.socketFactory.class=org.mypackage.ssl.FIPSCompatibleMailSSLSocketFactory.class

Released in 6.3.0.