1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-24 22:14:18 +00:00

🔧 Remove SSL from email

This commit is contained in:
Steffo 2021-05-30 17:20:16 +02:00
parent d0ec9fb366
commit 73dfbbc403
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -48,7 +48,7 @@ def is_repo_alert_triggered(repository_id):
def send_notification_email(alert): def send_notification_email(alert):
try: 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.ehlo()
smtpObj.starttls() smtpObj.starttls()
smtpObj.ehlo() smtpObj.ehlo()