Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def email_alert(message, address):
- fromaddr = 'email_address_here'
- username = 'username_here'
- password = 'password_here'
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(username, password)
- server.sendmail(fromaddr, address, message)
- server.quit()
Add Comment
Please, Sign In to add comment