aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-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);