Pre Merge pull request !427 from Heming9/5.X

This commit is contained in:
Heming9 2023-10-07 07:20:58 +00:00 committed by Gitee
commit e7998e32d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 10 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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