Guest User

Untitled

a guest
Jul 21st, 2015
253
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fromaddr = 'myaddr@gmail.com'
  2.         toaddrs  = 'recaddr@gmail.com'
  3.         msg = 'msg'
  4.         username = 'myaddr@gmail.com'
  5.         password = 'pwd'
  6.         server = smtplib.SMTP("smtp.gmail.com:587")
  7.         server.starttls()
  8.         server.login(username, password)
  9.         server.sendmail(fromaddr, toaddrs, msg)
  10.         server.quit()
RAW Paste Data