open fun setSession(session: Session): Unit
Set the JavaMail Session, possibly pulled from JNDI.
Default is a new Session without defaults, that is completely configured via this instance's properties.
If using a pre-configured Session, non-default properties in this instance will override the settings in the Session.
See Also
#setJavaMailProperties