Skip to content

Instantly share code, notes, and snippets.

@chauncey
chauncey / python_mime_email.py
Created December 4, 2012 19:47
Python HTML email
# import smtplib for sending and MIMEText to handle html
import smtplib
from email.mime.text import MIMEText
# Create a MIMEText msg and specify html
msg = MIMEText(htmlstring, 'html')
# Add a subject, sender and recipient to the msg
msg['Subject'] = 'My Subject'
msg['From'] = 'from@domain.com'
@chauncey
chauncey / st.rst
Last active October 9, 2015 10:27 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

General