原文:springboot Got bad greeting from SMTP host: smtp.qq.com, port: 465, response: [EOF]

springboot用qq邮箱的smtp服务发送邮件时报错Got bad greeting from SMTP host: smtp.qq.com, port: , response: EOF 解决方案 如果使用端口为 ,将protocol的smtp改为smtps 如果使用端口为 ,则可以使用smtp。 均为SSL连接端口,因为qq不支持非SSL端口。 以下是配置文件,主要在于protocal 视 ...

2021-10-26 15:05 0 793 推荐指数:

查看详情

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