發送郵件失敗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