Last active
December 9, 2017 05:52
-
-
Save ep4sh/1767275587be38f8ae4dba7d5069c02b to your computer and use it in GitHub Desktop.
Simple email sender via python
This file contains hidden or 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
#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