org.springframework.mail.MailAuthenticationException: Authentication failed Solution

1. abnormal asynchronous send a message

org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 501 mail from address must be same as authorization user
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 501 mail from address must be same as authorization user

 

2. Solution

  1. Check whether to open the mailbox POP3 / SMTP service

  2. Check whether the password is POP3 / SMTP mail service authorization code instead of the password

  3. Check the mailbox when sending filled out correctly

Guess you like

Origin www.cnblogs.com/chenxi-mxj/p/12109756.html