Simple Email Service (SES) Sample Application
Brian
I could not find a simple example to send email using SES in Python. Turns out it is really easy. If you have a MIME formatted message you can simply call send_raw_message.
|
|
Of course the tricky part is the MIME formatting. Turns out that is really easy in Python. Here is a simple example.
|
|
Then you can simply call as_string() and pass it to SES.
|
|
I messed around for a little while and created a few helper functions to handle HTML formatting and attachments. You can find the complete code in GitHub. I hope that helps someone.