Skip to content

Instantly share code, notes, and snippets.

@ep4sh
Last active December 9, 2017 05:52
Show Gist options
  • Save ep4sh/1767275587be38f8ae4dba7d5069c02b to your computer and use it in GitHub Desktop.
Save ep4sh/1767275587be38f8ae4dba7d5069c02b to your computer and use it in GitHub Desktop.
Simple email sender via python
#Developed by @ep4sh
import smtplib
from email.mime.text import MIMEText
msg = MIMEText("The body ")
msg['Subject'] = "Subj"
msg['From'] = "[email protected]"
msg['To'] = "[email protected]"
s = smtplib.SMTP('localhost')
s.send_message(msg)
s.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment