记录:在进行邮件发送模拟时遇到的错误
javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
使用的是qq邮箱,其中各种SSL配置都已完善,但是仍然报错,网上大部分解决方案为删除JDK\jre\lib\security目录下的java.security文件中的SSLv3,但是实际上并不能解决问题,必须删掉另外几个TSL,只剩下RC4及以后