SpringBoot整合邮箱发送(163邮箱和QQ邮箱)
#邮箱配置
mail:
host: smtp.qq.com
# 发件人邮箱
username: ****@qq.com
# QQ邮箱授权码
password: avnvpv***cixsef
# 编码格式
default-encoding: utf-8
# 协议
protocol: smtp
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
port: 587