Skip to content

Commit

Permalink
Use SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Jul 11, 2024
1 parent 19fd694 commit b83b6e1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ 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)
mailSender.setPort(465)
this.sender = sender;
}

Expand Down

0 comments on commit b83b6e1

Please sign in to comment.