Message failed to send! javax.mail.authenticationfailedexception:535 5.7.8 error:authentication failed:authentication failure
javax.mail.authenticationfailedexception:535 5.7.8 error:authentication failed:authentication failure
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:295)
At Javax.mail.Service.connect (service.java:176)
At Mail.sendout (mail.java:208)
At MAIL.SENDNOCC (mail.java:345)
At Sendmail.main (sendmail.java:88)
100 degrees, everyone told me that it was a username or a password problem. But this is not the case, I am in the local and test server is normal, only in the production of this problem occurs. Toss a day, the final discovery is the server DNS resolution problem, the specific resolution address can view the/etc/resolv.y file.
Write it, hope that no one else detours.
This article from "Cheng && program Garden" blog, reproduced please contact the author!
Java Mail Permissions issues