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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM