Skip to content

Instantly share code, notes, and snippets.

Avatar
😍

Abe.Chua jniva

😍
  • Shanghai,China
View GitHub Profile
@jniva
jniva / send_pdf_with_boto_ses.py
Created Jul 3, 2012 — forked from yosemitebandit/send_pdf_with_boto_ses.py
send PDF attachment with boto and SES
View send_pdf_with_boto_ses.py
''' 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