From ab82d13f60da70084a41f43fb89ccaf2962bb711 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Mon, 21 Jan 2019 09:55:39 +0100 Subject: [PATCH] Actually use configured smtp_url setting Instead of using the hardcoded Gmail SMTP server, this will use the already existing 'smtp_url' setting from config.json. --- crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler.py b/crawler.py index 9bad580..d73ae62 100644 --- a/crawler.py +++ b/crawler.py @@ -89,7 +89,7 @@ def send_email(msg_content): try: # Try to login smtp server - s = smtplib.SMTP("smtp.gmail.com:587") + s = smtplib.SMTP(emailinfo['smtp_url']) s.ehlo() s.starttls() s.login(emailinfo['sender'], emailinfo['sender-password'])