Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
stupid simple email notification in python
# all thanks to nael shiab's post here: http://naelshiab.com/tutorial-send-email-python
# adding gist for my own reference / ease remembering
import smtplib
from_email = "########@gmail.com"
from_email_password = "somethingsecure"
to_email = "#######@some_email.com"
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login(from_email, from_email_password)
msg = "HELLOOOOO!!!"
server.sendmail(from_email, to_email, msg)
server.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.