New to github...Fixed issues with hotmail and Yahoo email providers. Current issue - Gmail does not work properly.

This commit is contained in:
Brian Berg 2016-02-18 16:14:56 -06:00
parent a78ee17ef4
commit 9611eb13e5

View file

@ -86,13 +86,13 @@ for line in sendmail_file:
if email_provider == "yahoo": if email_provider == "yahoo":
if sendmail == 0: if sendmail == 0:
smtp = ("smtp.mail.yahoo.com") smtp = ("smtp.mail.yahoo.com")
port = ("25") port = ("587")
# support smtp for hotmail # support smtp for hotmail
if email_provider == "hotmail": if email_provider == "hotmail":
if sendmail == 0: if sendmail == 0:
smtp = ("smtp.hotmail.com") smtp = ("smtp.live.com")
port = ("25") port = ("587")
print (""" print ("""
@ -290,7 +290,7 @@ def mail(to, subject, prioflag1, prioflag2, text):
if sendmail == 0: if sendmail == 0:
if email_provider == "gmail": if email_provider == "gmail" or email_provider == "yahoo" or email_provider == "hotmail":
try: try:
mailServer.starttls() mailServer.starttls()
except: except: