From 4a3115ab4311b1bd08d9b7180e907ee2253dac28 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 6 Dec 2016 18:01:16 +0500 Subject: Add support for "mail.smtp.ssl.protocols" parameter --- src/org/traccar/notification/NotificationMail.java | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3