1、使用ip形式
Could not connect to SMTP host: 14.18.245.164, port: 465, response: 550.
2、使用域名形式
Could not connect to SMTP host: smtp.qq.com, port: 465, response: 550
3、錯誤日誌
ERROR c.atpdc.cms.business.system.service.CaptchaService - 發送郵箱失敗.
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException:
Could not connect to SMTP host: smtp.qq.com, port: 465, response: 550. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465, response: 550; message exceptions (1) are:
Failed message 1: javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, port: 465, response: 550
4、錯誤原因
騰訊地址:https://service.mail.qq.com/cgi-bin/help
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000725
5、解決辦法
代碼中寫入限流