修复 MailAccount-sslEnable 设置为 true 在debug 模式下 显示为 false 的bug

修复 MailAccount-sslEnable  设置为 true  在debug 模式下 显示为 false 的bug
 官方文档里面 : private static final String SSL_ENABLE = "mail.smtp.ssl.enable";
This commit is contained in:
Ipodao 2019-09-26 16:02:54 +08:00 committed by Gitee
parent 6d310646ad
commit e3307658ad

View File

@ -25,6 +25,7 @@ public class MailAccount implements Serializable {
private static final String SMTP_TIMEOUT = "mail.smtp.timeout";
private static final String STARTTTLS_ENABLE = "mail.smtp.starttls.enable";
private static final String SSL_ENABLE = "mail.smtp.ssl.enable";
private static final String SOCKEY_FACTORY = "mail.smtp.socketFactory.class";
private static final String SOCKEY_FACTORY_FALLBACK = "mail.smtp.socketFactory.fallback";
private static final String SOCKEY_FACTORY_PORT = "smtp.socketFactory.port";
@ -440,6 +441,7 @@ public class MailAccount implements Serializable {
// SSL
if(null != this.sslEnable && this.sslEnable) {
p.put(SSL_ENABLE, sslEnable);
p.put(SOCKEY_FACTORY, socketFactoryClass);
p.put(SOCKEY_FACTORY_FALLBACK, String.valueOf(this.socketFactoryFallback));
p.put(SOCKEY_FACTORY_PORT, String.valueOf(this.socketFactoryPort));