Skip to content

Commit

Permalink
feat(Mail): 添加SSL身份验证
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Oct 1, 2024
1 parent 3ab4356 commit 03f74f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/cc/baka9/catseedlogin/util/Mail.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static void sendMail(String receiveMailAccount, String subject, String co
} else {
email.setStartTLSEnabled(true);
}
email.setSSLCheckServerIdentity(true);
email.setFrom(Config.EmailVerify.EmailAccount, Config.EmailVerify.FromPersonal);
email.setSubject(subject);
email.setMsg(content);
Expand Down

0 comments on commit 03f74f7

Please sign in to comment.