org.springframework.mail.MailAuthenticationException: Authentication failed 解决方案

1. 异步发送邮件异常

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. 解决方案

  1. 检查邮箱是否开启POP3/SMTP服务

  2. 检查密码是否是POP3/SMTP服务授权码而不是邮箱密码

  3. 检查发送邮箱时候填写正确

posted @ 2019-12-27 21:44  Moooooocc  阅读(4499)  评论(0)    收藏  举报