邮件配置

This commit is contained in:
wucongxing8150 2025-08-14 18:50:21 +08:00
parent c6a24e287a
commit 7be74f7229

View File

@ -40,24 +40,23 @@ spring:
port: 30002
password: gdxz2022&dj.
# 邮件置以SSL的方式发送, 这个需要使用这种方式并且端口是465
# 已禁用邮件功能,避免认证失败错误
# mail:
# host: smtp.163.com
# port: 465
# username: lab1024@163.com
# password: LAB1024LAB
# test-connection: false
# properties:
# mail:
# smtp:
# auth: true
# ssl:
# enable: true
# socketFactory:
# class: com.sun.mail.util.MailSSLSocketFactory
# fallback: false
# debug: false
# 邮件配置
mail:
host: smtp.163.com
port: 465
username: your-email@163.com
password: your-password
test-connection: false
properties:
mail:
smtp:
auth: true
ssl:
enable: true
socketFactory:
class: com.sun.mail.util.MailSSLSocketFactory
fallback: false
debug: false
# json序列化相关配置
jackson: