Skip to content

Commit

Permalink
Do not use SSL for emails
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Jul 11, 2024
1 parent 14ce130 commit 953a0b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public MailService(final @Value("${mailSMTPServer}") String smtpServer

Properties pros = new Properties();
pros.put("mail.smtp.auth", true);
pros.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
// pros.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
// pros.put("mail.smtp.ssl.enable", true);

mailSender.setHost(smtpServer);
mailSender.setUsername(smtpUserName);
mailSender.setPassword(smtpUserPassword);
mailSender.setPort(465);
// mailSender.setPort(465);
mailSender.setJavaMailProperties(pros);
this.sender = sender;
}
Expand Down

0 comments on commit 953a0b5

Please sign in to comment.