1. Error description
553 mail from must equal authorized usercom.sun.mail.smtp.smtpsendfailedexception:553 Mail from must equal authorized use Rat Com.sun.mail.smtp.SMTPTransport.issueSendCommand (smtptransport.java:1333) at Com.sun.mail.smtp.SMTPTransport.mailFrom (smtptransport.java:906) at Com.sun.mail.smtp.SMTPTransport.sendMessage ( smtptransport.java:535) at Com.you.mail.model.SendMessage.sendMessage (sendmessage.java:71) at Com.you.mail.model.SendMessage.main (sendmessage.java:89) Exception in thread "main" com.sun.mail.smtp.smtpsendfailedexception:553 Mail from must equal authorized Userat Com.sun.mail.smtp.SMTPTransport.issueSendCommand (smtptransport.java:1333) at Com.sun.mail.smtp.SMTPTransport.mailFrom (smtptransport.java:906) at Com.sun.mail.smtp.SMTPTransport.sendMessage ( smtptransport.java:535) at Com.you.mail.model.SendMessage.sendMessage (sendmessage.java:71) at Com.you.mail.model.SendMessage.main (sendmessage.java:89)
2. Cause of error
Because in the mail sent, the login user and the sender must be consistent, and in the test I logged in the user's mailbox is 163 mailbox, the sender's mailbox is QQ mailbox, resulting in error
3. Solutions
Ensure that the login mailbox is consistent with the sender's mailbox, either using 163 mailbox, or using QQ mailbox
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
com.sun.mail.smtp.smtpsendfailedexception:553 Mail from must equal authorized user