|
@@ -18,7 +18,7 @@ def send(msg):
|
|
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
|
|
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
|
|
server.ehlo()
|
|
server.ehlo()
|
|
server.login(gmail_user, gmail_password)
|
|
server.login(gmail_user, gmail_password)
|
|
- server.sendmail(sent_from, to, 'test mail')
|
|
|
|
|
|
+ server.sendmail(sent_from, to, msg)
|
|
server.close()
|
|
server.close()
|
|
print ('Email sent!')
|
|
print ('Email sent!')
|
|
except:
|
|
except:
|