Skip to content

Commit

Permalink
added checkserveridentity to true in EmailManager
Browse files Browse the repository at this point in the history
  • Loading branch information
panuozzo77 committed Jan 19, 2024
1 parent 16f6c5a commit affc554
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/model/service/email/EmailManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ private Properties loadEmailProperties() {
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.ssl.checkserveridentity", "true");
return props;
}
}

0 comments on commit affc554

Please sign in to comment.