This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |