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'])