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