aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-12 00:57:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-12 00:57:57 +1300
commit94b5679115b0aef3fe449b40f248dd83fde68ac5 (patch)
tree78ed634ee4147a687dd68782b402039020e2aeae /src
parent97a647f5dabb5d34f3fd4a33df3ee2cd6816c6b5 (diff)
downloadtrackermap-server-94b5679115b0aef3fe449b40f248dd83fde68ac5.tar.gz
trackermap-server-94b5679115b0aef3fe449b40f248dd83fde68ac5.tar.bz2
trackermap-server-94b5679115b0aef3fe449b40f248dd83fde68ac5.zip
Fix an SMTP configuration issue
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/notification/NotificationMail.java4
1 files changed, 2 insertions, 2 deletions
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);