From 73dfbbc403fe09b395291fa3a1f0f4b64b426fff Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 30 May 2021 17:20:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20SSL=20from=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest_crawler/alert_trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest_crawler/alert_trigger.py b/nest_crawler/alert_trigger.py index 6be945c..d65ed25 100644 --- a/nest_crawler/alert_trigger.py +++ b/nest_crawler/alert_trigger.py @@ -48,7 +48,7 @@ def is_repo_alert_triggered(repository_id): def send_notification_email(alert): try: - with smtplib.SMTP_SSL(host=os.environ["SMTP_HOST"], port=587) as smtpObj: + with smtplib.SMTP(host=os.environ["SMTP_HOST"], port=587) as smtpObj: smtpObj.ehlo() smtpObj.starttls() smtpObj.ehlo()