Details
Description
javax.mail:mail doesn't seem to support tls-1.2. It is also extremely out of date.
See:
https://jira.atlassian.com/browse/FE-7294
https://stackoverflow.com/questions/67802929/javamail-1-4-2-supported-tlsv1-2
though it is hard to find more definitive sources.
In any case javax.mail:mail was replaced by com.sun.mail:javax.mail. That has been replaced by jakarta.mail:jakarta.mail-api. So the groupid and the artifactid have changed multiple times, and the latest change also changes package naming. I don't think jakarta mail is compatible with spring 5, so we should at least uprade to com.sun.mail:javax.mail:1.6.2