修复邮件发送
Some checks failed
CI Build and Test / build (push) Has been cancelled
Deploy to Server / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-10-20 16:42:32 +08:00
parent a7b3a4f293
commit 2c8b0a7b2b
2 changed files with 234 additions and 6 deletions

View File

@@ -61,17 +61,21 @@ smsbao.password=your_password
# 邮件配置
# SMTP 服务器地址
spring.mail.host=smtp.chengmail.cn
# SMTP 服务器端口
spring.mail.host=smtp.em.dingtalk.com
# SMTP 服务器端口465 为 SSL 加密端口)
spring.mail.port=465
# 发件人邮箱
spring.mail.username=dev@corewing.com
# 邮箱授权码(不是邮箱密码!需要在邮箱设置中开启 SMTP 服务并获取授权码)
spring.mail.password=HRTmmNrBRjSxfwAk
spring.mail.password=t035gngwYl0xgvZF
# 编码格式
spring.mail.default-encoding=UTF-8
# 其他配置
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.ssl.enable=false
# 465 端口使用 SSL 加密,需要启用 SSL
spring.mail.properties.mail.smtp.ssl.enable=true
spring.mail.properties.mail.smtp.ssl.required=true
# SSL Socket Factory 配置
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.port=465
spring.mail.properties.mail.smtp.socketFactory.fallback=false