Skip to content

Commit 31773b8

Browse files
Updated TLS version to 1.2
Updated TLS version to 1.2
1 parent d4f613c commit 31773b8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
-16 KB
Binary file not shown.

src/EmailModuleWithTemplates/javasource/emailtemplate/mail/Sender.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,12 @@ private void setConnectionInfo(Email mail, SMTPConfiguration configuration)
264264

265265
if ((mail.isSSLOnConnect() || mail.isStartTLSEnabled()) && mail.isSSLCheckServerIdentity()) {
266266
properties.setProperty(EmailConstants.MAIL_SMTP_SSL_CHECKSERVERIDENTITY, "true");
267-
}
267+
268+
}
269+
270+
if(configuration.useTLSSMTP()) {
271+
properties.setProperty("mail.smtp.ssl.protocols","TLSv1.2");
272+
}
268273

269274
if (configuration.getFromAddress() != null) {
270275
properties.setProperty(EmailConstants.MAIL_SMTP_FROM, configuration.getFromAddress());

0 commit comments

Comments
 (0)