Created
February 9, 2016 08:01
-
-
Save hackerkid/76f6b70a15c50de99086 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 | |
server = smtplib.SMTP('smtp.gmail.com', 587) | |
server.starttls() | |
server.login("email", "password") | |
msg = "YOUR MESSAGE!" | |
server.sendmail("[email protected]", "[email protected]", msg) | |
server.quit() | |
# server.login("YOUR EMAIL ADDRESS", "YOUR PASSWORD") | |
# server.sendmail("YOUR EMAIL ADDRESS", "THE EMAIL ADDRESS TO SEND TO", msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment