Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import smtplib
  2. fromaddr = 'anye...@gmail.com'
  3. toaddrs = 'myfr...@gmail.com'
  4. msg = 'some one is using this app'
  5. username = 'anyem...@gmail.com'
  6. password = 'password'
  7. server = smtplib.SMTP('smtp.gmail.com:587')
  8. server.starttls()
  9. server.login(username,password)
  10. server.sendmail(fromaddr, toaddrs, msg)
  11. server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement