Skip to content

Instantly share code, notes, and snippets.

@DonerKebab
Last active November 24, 2016 04:07
Show Gist options
  • Save DonerKebab/b3efbe78d998d8c78fc65beb6e528310 to your computer and use it in GitHub Desktop.
Save DonerKebab/b3efbe78d998d8c78fc65beb6e528310 to your computer and use it in GitHub Desktop.
a simplest way to send gmail
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