JavaMail uses 163 mailbox to report 535 error: authentication failed

JavaMail uses Netease 163 mailbox or 126 mailbox or other Netease mailboxes to report 535 error: authentication failed

javax.mail.AuthenticationFailedException: 535 Error: authentication failed

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)

at javax.mail.Service.connect(Service.java:313)

at javax.mail.Service.connect(Service.java:172)

at javax.mail.Service.connect(Service.java:121)

at javax.mail.Transport.send0(Transport.java:190)

at javax.mail.Transport.send(Transport.java:120)

If you are a 163 or 126 mailbox or other Netease enterprise mail or Netease personal VIP mailbox, please check the authorization code when SMTP is turned on in your web mailbox settings. You will know that the login password in the program code is actually the authorization code you set. Be sure to pay attention to it!

Note: This article is original, please keep the address for reprint. http://www.itxm.net/a/bianchengyuyan/2016/1115/779.html

 

Similar Posts: