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 03f74f7 commit 0b9badb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cc/baka9/catseedlogin/util/Mail.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public static void sendMail(String receiveMailAccount, String subject, String co
email.setAuthenticator(new DefaultAuthenticator(Config.EmailVerify.EmailAccount, Config.EmailVerify.EmailPassword));
if (Config.EmailVerify.SSLAuthVerify) {
email.setSSLOnConnect(true);
email.setSSLCheckServerIdentity(true);
} 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 0b9badb

Please sign in to comment.