Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- content='Hello, email message goes here'
- server=smtplib.SMTP('smtp.gmail.com',587)
- server.ehlo()
- server.starttls()
- server.login('xxxxxxx','xxxxxx')
- server.sendmail('xxxxxxx','[email protected]',content)
- print "Mail Sent"
- server.close()
Add Comment
Please, Sign In to add comment