在这里插入代码片
spring:
mail:
host: smtp.qq.com #发送邮件服务器
username: 1076077319@qq.com #发送邮件的邮箱地址
password: vedrszjfwodhbabb #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
properties.mail.smtp.port: 465 #端口号465或587
from: # 发送邮件的地址,和上面username一致
properties.mail.smtp.starttls.enable: true
properties.mail.smtp.starttls.required: true
properties.mail.smtp.ssl.enable: true
default-encoding: utf-8
2021-08-18
最新推荐文章于 2021-11-10 17:26:45 发布