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. 检查发送邮箱时候填写正确

上一篇:洛谷 P1514 引水入城


下一篇:洛谷 P1230 智力大冲浪