Java QQ Send mail

Source: Internet
Author: User

Exception handling

1.javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Solution:mail.smtp.socketFactory.fallback设置为true

2. javax.net.ssl.SSLHandshakeException:Received Fatal Alert:handshake_failure

Solution: JDK caused by the JDK, there is a JCE package, security mechanism caused by the access to HTTPS will be error, the official web has replaced the jar package, replace the good

Local_policy.jar,us_export_policy.jar in the catalogue%java_home%\jre\lib\security.

JDK7 http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

JDK8 http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

Case reference: http://www.cnblogs.com/lihongchen/p/4543562.html#undefined

Java QQ Send mail

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.