diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-07 09:31:07 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 09:31:07 +1300 |
commit | 9cbebefb5dd51130dd0856270643199777a30df6 (patch) | |
tree | e2c0684fed49a1789334083634b7fb980e11ef9e /src/org | |
parent | ae2612e060e390773cc49955ddc422a889abd2f5 (diff) | |
parent | 4a3115ab4311b1bd08d9b7180e907ee2253dac28 (diff) | |
download | trackermap-server-9cbebefb5dd51130dd0856270643199777a30df6.tar.gz trackermap-server-9cbebefb5dd51130dd0856270643199777a30df6.tar.bz2 trackermap-server-9cbebefb5dd51130dd0856270643199777a30df6.zip |
Merge pull request #2653 from Abyss777/mail_protocols
Add support for "mail.smtp.ssl.protocols" parameter
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/notification/NotificationMail.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/notification/NotificationMail.java b/src/org/traccar/notification/NotificationMail.java index 17e4d6be4..90f6bd75e 100644 --- a/src/org/traccar/notification/NotificationMail.java +++ b/src/org/traccar/notification/NotificationMail.java @@ -61,6 +61,11 @@ public final class NotificationMail { properties.put("mail.smtp.ssl.trust", sslTrust); } + String sslProtocols = provider.getString("mail.smtp.ssl.protocols"); + if (sslProtocols != null) { + properties.put("mail.smtp.ssl.protocols", sslProtocols); + } + properties.put("mail.smtp.auth", provider.getString("mail.smtp.auth")); String username = provider.getString("mail.smtp.username"); |