Skip to content

Instantly share code, notes, and snippets.

@joaonc
joaonc / email_ses.py
Last active August 30, 2018 21:06
Send HTML email with attachment with python boto3 for Amazon SES
"""
Helper module to send emails with Amazon SES (Simple Email Service).
Sending an email with boto3 is relatively easy, but adding an attachment requires more work.
"""
import os
import boto3
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.application import MIMEApplication