aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-06 18:01:16 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-06 18:01:16 +0500
commit4a3115ab4311b1bd08d9b7180e907ee2253dac28 (patch)
treee2c0684fed49a1789334083634b7fb980e11ef9e /src/org/traccar
parentae2612e060e390773cc49955ddc422a889abd2f5 (diff)
downloadtraccar-server-4a3115ab4311b1bd08d9b7180e907ee2253dac28.tar.gz
traccar-server-4a3115ab4311b1bd08d9b7180e907ee2253dac28.tar.bz2
traccar-server-4a3115ab4311b1bd08d9b7180e907ee2253dac28.zip
Add support for "mail.smtp.ssl.protocols" parameter
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/notification/NotificationMail.java5
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");