From 94b5679115b0aef3fe449b40f248dd83fde68ac5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 12 Oct 2016 00:57:57 +1300 Subject: Fix an SMTP configuration issue --- src/org/traccar/notification/NotificationMail.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/traccar/notification/NotificationMail.java b/src/org/traccar/notification/NotificationMail.java index f8449e7d2..b3531a97b 100644 --- a/src/org/traccar/notification/NotificationMail.java +++ b/src/org/traccar/notification/NotificationMail.java @@ -56,7 +56,7 @@ public final class NotificationMail { String username = config.getString("mail.smtp.username"); if (username != null) { - result.put("mail.smtp.user", username); + result.put("mail.smtp.username", username); } String password = config.getString("mail.smtp.password"); if (password != null) { @@ -119,7 +119,7 @@ public final class NotificationMail { return; } } - mailSession = Session.getInstance(mailServerProperties, null); + mailSession = Session.getDefaultInstance(mailServerProperties); mailMessage = new MimeMessage(mailSession); -- cgit v1.2.3