'Is there any official documentation of JavaMail which states the support of TLSv1.2?
I landed on following exception while using mail-1.4 jar in an java application to send mail:
javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls [PN1PR01CA0107.INDPRD01.PROD.OUTLOOK.COM]
To resolve above exception, I tried various versions of JavaMail. I could resolve my issue with the help of javax.mail-1.5.3 jar.
My query is there any supporting official documentation or blog which states to upgrade the JavaMail jar to version 1.5.3 or above?
Solution 1:[1]
The Jakarta Mail changes list (it lists changes including original SUN versions) does not mention TLS version support. But I do not think it should. That should be left to the TLS runtime that it is using as backend.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | wilx |