Created
June 13, 2014 08:50
-
-
Save jayapal/ea37e2d4de0bb50ca277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
fromaddr = '[email protected]' | |
toaddrs = '[email protected]' | |
msg = 'Why,Oh why!' | |
username = '[email protected]' | |
password = 'pwd' | |
server = smtplib.SMTP('smtp.gmail.com:587') | |
server.ehlo() | |
server.starttls() | |
server.login(username,password) | |
server.sendmail(fromaddr, toaddrs, msg) | |
server.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment