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