You can enable use of this command by setting the Session property “mail.smtp.starttls.enable” to “true”. This will cause the SMTP protocol provider to issue the STARTTLS command after connecting to the server. See the file SSLNOTES.txt included in the JavaMail download package for additional information. Note that your server is most likely also going to want you to authenticate.
You can enable use of this command by setting the Session property “mail.smtp.starttls.enable” to “true”. This will cause the SMTP protocol provider to issue the STARTTLS command after connecting to the server. See the file SSLNOTES.txt included in the JavaMail download package for additional information. Note that your server is most likely also going to want you to authenticate.