Skip to content

Commit

Permalink
Try starttls
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Jul 11, 2024
1 parent 129df34 commit 9475e4c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ public MailService(final @Value("${mailSMTPServer}") String smtpServer

Properties props = new Properties();
props.put("mail.smtp.auth", true);
props.put("mail.smtp.starttls.enable", true)

mailSender.setJavaMailProperties(props);
mailSender.setHost(smtpServer);
mailSender.setUsername(smtpUserName);
mailSender.setPassword(smtpUserPassword);
mailSender.setPort(587)
this.sender = sender;
}

Expand Down

0 comments on commit 9475e4c

Please sign in to comment.