JavaMail Authenticating 535 error

Source: Internet
Author: User
Tags log4j

Org.apache.commons.mail.EmailException:Sending the email to the following server failed:smtp.163.com:25
At Org.apache.commons.mail.Email.sendMimeMessage (email.java:1242)
At Org.apache.commons.mail.Email.send (email.java:1267)
At ExcelWatcher.MailUtil.send (mailutil.java:35)
At ExcelWatcher.MailUtil.main (mailutil.java:56)
Caused by:javax.mail.authenticationfailedexception:535 Error:authentication failed

At Com.sun.mail.smtp.smtptransport$authenticator.authenticate (smtptransport.java:826)
At Com.sun.mail.smtp.SMTPTransport.authenticate (smtptransport.java:761)
At Com.sun.mail.smtp.SMTPTransport.protocolConnect (smtptransport.java:685)
At Javax.mail.Service.connect (service.java:317)
At Javax.mail.Service.connect (service.java:176)
At Javax.mail.Service.connect (service.java:125)
At Javax.mail.Transport.send0 (transport.java:194)
At Javax.mail.Transport.send (transport.java:124)
At Org.apache.commons.mail.Email.sendMimeMessage (email.java:1232)
... 3 more
Log4j:warn No Appenders could is found for logger (excelwatcher.mailutil).
Log4j:warn Initialize the log4j system properly.
Log4j:warn See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

If you are 163 or 126 mailbox, then you check your Web-side mailbox settings in the SMTP open, there is an authorization code, you re-shut down the SMTP service and then re-open you know, the code is in fact the password is the authorization code. Pay attention!!

JavaMail Authenticating 535 error

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.