update 邮件发送配置支持使用debug选项

This commit is contained in:
heming 2023-10-02 01:22:43 +08:00
parent b24e6348c3
commit dc28a833ed
4 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,8 @@ mail:
timeout: 0
# Socket连接超时值单位毫秒缺省值不超时
connectionTimeout: 0
# 开启调试,调试模式会显示与邮件服务器通信过程
debug: true
--- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
# https://wind.kim/doc/start 文档地址 各个厂商可同时使用

View File

@ -154,6 +154,8 @@ mail:
timeout: 0
# Socket连接超时值单位毫秒缺省值不超时
connectionTimeout: 0
# 开启调试,调试模式会显示与邮件服务器通信过程
debug: false
--- # sms 短信 支持 阿里云 腾讯云 云片 等等各式各样的短信服务商
# https://wind.kim/doc/start 文档地址 各个厂商可同时使用

View File

@ -26,6 +26,7 @@ public class MailConfig {
account.setFrom(mailProperties.getFrom());
account.setUser(mailProperties.getUser());
account.setPass(mailProperties.getPass());
account.setDebug(mailProperties.getDebug());
account.setSocketFactoryPort(mailProperties.getPort());
account.setStarttlsEnable(mailProperties.getStarttlsEnable());
account.setSslEnable(mailProperties.getSslEnable());

View File

@ -66,4 +66,8 @@ public class MailProperties {
* Socket连接超时值单位毫秒缺省值不超时
*/
private Long connectionTimeout;
/**
* 设置是否打开调试模式调试模式会显示与邮件服务器通信过程默认不开启
*/
private Boolean debug;
}