Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- fromaddr = 'thescogg@gmail.com'
- toaddrs = 'thescogg@gmail.com'
- msg = 'There was a terrible error that occured and I wanted you to know!'
- # Credentials (if needed)
- username = 'thescogg'
- password = 'thescogg2185'
- # The actual mail send
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(username,password)
- server.sendmail(fromaddr, toaddrs, msg)
- server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement