Guest User

Untitled

a guest
Dec 8th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import smtplib
  2.  
  3. msg = 'Testing to see if python mailer works'
  4. to = 'insanehf@hotmail.com'
  5. username = 'yougotowned123@gmail.com'
  6. password = 'lol123lol'
  7. server = smtplib.SMTP('smtp.gmail.com:587')
  8. server.starttls()
  9. server.login(username, password)
  10. server.sendmail(user, to, msg)
  11. print "good job, you sent an email"
  12. server.quit()
Add Comment
Please, Sign In to add comment