QQ 邮箱 587 端口连接失败

25次阅读

共计 512 个字符,预计需要花费 2 分钟才能阅读完成。

springboot 项目,465 端口是正常发送,587 连接失败,是腾讯的问题还是我配置项里面少配置了什么东西呀。
报错:Could not connect to SMTP host: smtp.qq.com, port: 587
配置文件:
#邮件服务器
spring.mail.host=smtp.qq.com
spring.mail.port=587
spring.mail.username=
spring.mail.password=
spring.mail.protocol=smtp
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.ssl.enable=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.socketFactory.port=587
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory

正文完
 0