fix 3.7 email host

pull/569/head
文贤平 2019-09-02 17:20:00 +08:00
parent 36e60d6082
commit d31171ea29
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def sendEmail(msg):
msg['To'] = receiver
try:
smtp = smtplib.SMTP_SSL()
smtp = smtplib.SMTP_SSL(host)
smtp.connect(host)
except socket.error:
smtp = smtplib.SMTP()