Skip to content

Commit

Permalink
Set mail SSL differently
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Jul 11, 2024
1 parent 304ff81 commit 14ce130
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public MailService(final @Value("${mailSMTPServer}") String smtpServer

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

mailSender.setHost(smtpServer);
mailSender.setUsername(smtpUserName);
Expand Down

0 comments on commit 14ce130

Please sign in to comment.