1、Use SMTP AUTHentication 下 user name 所定義的郵箱,必須和全局配置的管理郵箱一直,否則會報錯:
Error sending to the following VALID addresses: zhangbei59@163.com SendFailedException message: 501 mail from address must be same as authorization user
2、郵箱驗證密碼,不是該郵箱的登錄密碼,而是專用第三方授權密碼,需要去你郵箱的后台設置里面找到該項生成。
否則output會報認證錯誤。
MessagingException message: 535 Error: authentication failed