發送郵件的密碼一定要填授權碼,一長串字母,不是你郵箱的登錄密碼
報錯信息:
javax.mail.AuthenticationFailedException: 535 Login Fail. Please enter your authorization code to login. More information in http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256
打開http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256鏈接
進入了郵箱的幫助中心:

首先我們打開郵箱的授權碼那里,一定要發送郵件的那個郵箱的授權碼。
POP3/SMTP服務授權碼(IMAP/SMTP服務授權碼)兩個都可以。隨便復制一個
復制郵箱給的授權碼,到yml配置文件的密碼那里。properties也是一樣的。
重新運行就沒問題了。
