Skip to content

Instantly share code, notes, and snippets.

View jniva's full-sized avatar
😍

Abe.Chua jniva

😍
  • Shanghai,China
View GitHub Profile
@jniva
jniva / send_pdf_with_boto_ses.py
Created July 3, 2012 17:36 — forked from yosemitebandit/send_pdf_with_boto_ses.py
send PDF attachment with boto and SES
''' quick example showing how to attach a pdf to multipart messages
and then send them from SES via boto
'''
from email.mime.text import MIMEText
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
import boto