From 2498caf8e965c25e4c177a8a075f37b8937c8be3 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 3 Aug 2016 12:31:57 +0500 Subject: Fix mail session creating --- src/org/traccar/notification/NotificationMail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/traccar/notification/NotificationMail.java b/src/org/traccar/notification/NotificationMail.java index bc7f6d4da..a0b80d2ab 100644 --- a/src/org/traccar/notification/NotificationMail.java +++ b/src/org/traccar/notification/NotificationMail.java @@ -112,7 +112,7 @@ public final class NotificationMail { return; } } - mailSession = Session.getDefaultInstance(mailServerProperties, null); + mailSession = Session.getInstance(mailServerProperties, null); mailMessage = new MimeMessage(mailSession); -- cgit v1.2.3