Advertisement
Guest User

Untitled

a guest
Feb 20th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import smtplib
  2.  
  3. fromaddr = 'thescogg@gmail.com'
  4. toaddrs = 'thescogg@gmail.com'
  5. msg = 'There was a terrible error that occured and I wanted you to know!'
  6.  
  7.  
  8. # Credentials (if needed)
  9. username = 'thescogg'
  10. password = 'thescogg2185'
  11.  
  12. # The actual mail send
  13. server = smtplib.SMTP('smtp.gmail.com:587')
  14. server.starttls()
  15. server.login(username,password)
  16. server.sendmail(fromaddr, toaddrs, msg)
  17. server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement