Skip to content

Instantly share code, notes, and snippets.

View ntmoe's full-sized avatar

Nicholas Moe ntmoe

View GitHub Profile
@ntmoe
ntmoe / mailscript.py
Created January 27, 2012 17:34 — forked from ymirpl/gist:1052094
Python unicode e-mail sending
#!/usr/bin/env python
#coding=utf8
from cStringIO import StringIO
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
from email import Charset
from email.generator import Generator
from email.utils import formataddr
import smtplib