JavaMail Send mail should add client authorization password instead of login password

Source: Internet
Author: User

Tag:ptr    Password    div   transport   style    protoc   mail   read    Landing    

Exception in thread "main" javax.mail.authenticationfailedexception:535 Error:authentication failed    at Com.sun.mail.smtp.smtptransport$authenticator.authenticate (Smtptransport.java:932)    at Com.sun.mail.smtp.SMTPTransport.authenticate (Smtptransport.java:843)    at Com.sun.mail.smtp.SMTPTransport.protocolConnect (Smtptransport.java:748)    at Javax.mail.Service.connect (Service.java:366) at    javax.mail.Service.connect (Service.java:246 ) at    javax.mail.Service.connect (service.java:267) at    mail.send (mail.java:Notoginseng  ) at    Main.main (Main.java:21)

Login authentication failed, the first filled in is 163 mailbox login password, and later because the SMTP service enabled after the client authorization password, this password only in the SMS sent to the phone appears once

JavaMail Send mail should add client authorization password instead of login password

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.