Javamail经过qq邮箱发送邮件报错 handshake_failure

发送邮件失败Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465;html

nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure. Failed messages: javax.mail. MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465;java

nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure安全

这个问题的缘由是由于jdk1.8中jce包的安全策略致使的问题,须要下载1.7版本的jce,将1.8的覆盖掉,就能够了oracle

下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html.net

 

覆盖路径: %JAVA_HOME%\jre\lib\security下的local_policy.jar,US_export_policy.jarserver

相关文章
相关标签/搜索