首页 > 编程语言 > 详细

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

时间:2019-12-27 22:53:52      阅读:89      评论:0      收藏:0      [点我收藏+]

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

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

原文:https://www.cnblogs.com/chenxi-mxj/p/12109756.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!