Guest User

Untitled

a guest
Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import smtplib
  2. content='Hello, email message goes here'
  3. server=smtplib.SMTP('smtp.gmail.com',587)
  4. server.ehlo()
  5. server.starttls()
  6. server.login('xxxxxxx','xxxxxx')
  7. server.sendmail('xxxxxxx','[email protected]',content)
  8. print "Mail Sent"
  9. server.close()
Add Comment
Please, Sign In to add comment