Skip to content

Commit

Permalink
Put mail properties as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss777 committed Dec 15, 2017
1 parent 5debe74 commit f8a481a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/traccar/notification/NotificationMail.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ private static Properties getProperties(PropertiesProvider provider) {

Boolean starttlsEnable = provider.getBoolean("mail.smtp.starttls.enable");
if (starttlsEnable != null) {
properties.put("mail.smtp.starttls.enable", starttlsEnable);
properties.put("mail.smtp.starttls.enable", String.valueOf(starttlsEnable));
}
Boolean starttlsRequired = provider.getBoolean("mail.smtp.starttls.required");
if (starttlsRequired != null) {
properties.put("mail.smtp.starttls.required", starttlsRequired);
properties.put("mail.smtp.starttls.required", String.valueOf(starttlsRequired));
}

Boolean sslEnable = provider.getBoolean("mail.smtp.ssl.enable");
if (sslEnable != null) {
properties.put("mail.smtp.ssl.enable", sslEnable);
properties.put("mail.smtp.ssl.enable", String.valueOf(sslEnable));
}
String sslTrust = provider.getString("mail.smtp.ssl.trust");
if (sslTrust != null) {
Expand Down

0 comments on commit f8a481a

Please sign in to comment.