diff --git a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/alert/impl/EmailAlertNotifyServiceImpl.java b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/alert/impl/EmailAlertNotifyServiceImpl.java index b6ee9d7c21..c1944fe17c 100644 --- a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/alert/impl/EmailAlertNotifyServiceImpl.java +++ b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/alert/impl/EmailAlertNotifyServiceImpl.java @@ -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()); diff --git a/streampark-console/streampark-console-service/src/test/java/org/apache/streampark/console/core/service/alert/AlertServiceTest.java b/streampark-console/streampark-console-service/src/test/java/org/apache/streampark/console/core/service/alert/AlertServiceTest.java index c529e02bb3..4c10c095e4 100644 --- a/streampark-console/streampark-console-service/src/test/java/org/apache/streampark/console/core/service/alert/AlertServiceTest.java +++ b/streampark-console/streampark-console-service/src/test/java/org/apache/streampark/console/core/service/alert/AlertServiceTest.java @@ -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 {