You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ak...@apache.org on 2019/07/11 15:29:30 UTC

[incubator-pinot] branch master updated: [TE] Inject the port from config into Commons mail SSL Smtp port (#4420)

This is an automated email from the ASF dual-hosted git repository.

akshayrai09 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bec451  [TE] Inject the port from config into Commons mail SSL Smtp port (#4420)
6bec451 is described below

commit 6bec4510c6e239eabf10e18612e80e5d5921c2d9
Author: Akshay Rai <ak...@gmail.com>
AuthorDate: Thu Jul 11 08:29:23 2019 -0700

    [TE] Inject the port from config into Commons mail SSL Smtp port (#4420)
---
 .../pinot/thirdeye/detection/alert/scheme/DetectionEmailAlerter.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/alert/scheme/DetectionEmailAlerter.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/alert/scheme/DetectionEmailAlerter.java
index 588a7b4..fd18322 100644
--- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/alert/scheme/DetectionEmailAlerter.java
+++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/alert/scheme/DetectionEmailAlerter.java
@@ -121,6 +121,7 @@ public class DetectionEmailAlerter extends DetectionAlertScheme {
     if (config.getSmtpUser() != null && config.getSmtpPassword() != null) {
       email.setAuthenticator(new DefaultAuthenticator(config.getSmtpUser(), config.getSmtpPassword()));
       email.setSSLOnConnect(true);
+      email.setSslSmtpPort(Integer.toString(config.getSmtpPort()));
     }
     email.send();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org