Skip to content

Instantly share code, notes, and snippets.

@hackerkid
Created February 9, 2016 08:01
Show Gist options
  • Save hackerkid/76f6b70a15c50de99086 to your computer and use it in GitHub Desktop.
Save hackerkid/76f6b70a15c50de99086 to your computer and use it in GitHub Desktop.
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