Last active
November 24, 2016 04:07
-
-
Save DonerKebab/b3efbe78d998d8c78fc65beb6e528310 to your computer and use it in GitHub Desktop.
a simplest way to send gmail
This file contains 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("YOUR EMAIL ADDRESS", "YOUR PASSWORD") | |
msg = "YOUR MESSAGE!" | |
server.sendmail("YOUR EMAIL ADDRESS", "THE EMAIL ADDRESS TO SEND TO", msg) | |
server.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment