阿里云申请解封25号端口被拒后,修改QQ邮箱发送端口

申请解封25号端口
由于上篇文章我申请解封25号端口后,半个小时左右出来结果了,被拒绝了,/(ㄒoㄒ)/~~
所以需要修改QQ邮箱发送的端口号,大概就是下面这样

  • spring.mail.port=465 修改端口号
  • spring.mail.protocol=smtps 修改为加密协议
  • spring.mail.properties.mail.stmp.ssl.enable=true 开启SSL
# qq邮箱发送邮件
spring.mail.host=smtp.qq.com
spring.mail.protocol=smtps
spring.mail.username=xxxxxx@qq.com
spring.mail.password=xxxxxxxxxxx
spring.mail.default-encoding=UTF-8
spring.mail.port=465
# 设置开启ssl
spring.mail.properties.mail.stmp.ssl.enable=true

猜你喜欢

转载自blog.csdn.net/qq_46070108/article/details/121339984