Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchunfu committed Oct 23, 2023
1 parent 5bce238 commit b97fc89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private boolean sendEmail(EmailConfig emailConfig, AlertTemplate mail, String...
htmlEmail.setHostName(emailConfig.getSmtpHost());
htmlEmail.setAuthentication(emailConfig.getUserName(), emailConfig.getPassword());
htmlEmail.setFrom(emailConfig.getFrom());
if (emailConfig.isSsl()) {
if (emailConfig.getSsl()) {
htmlEmail.setSSLCheckServerIdentity(true);
htmlEmail.setSSLOnConnect(true);
htmlEmail.setSslSmtpPort(emailConfig.getSmtpPort().toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private void sendEmail(String subject, String html, String... mails) throws Emai
htmlEmail.setAuthentication(this.emailConfig.getUserName(), this.emailConfig.getPassword());
htmlEmail.setFrom(this.emailConfig.getFrom());

if (this.emailConfig.isSsl()) {
if (this.emailConfig.getSsl()) {
htmlEmail.setSSLOnConnect(true);
htmlEmail.setSslSmtpPort(this.emailConfig.getSmtpPort().toString());
} else {
Expand Down

0 comments on commit b97fc89

Please sign in to comment.