A simple Flask extension to send mail from Amazon SES.
From PyPi
pip install Flask-SES-Mailer
From GitHub
git clone git@github.com:iamjohnnym/Flask-SES-Mailer.git
# Bare necessities for use
from flask import Flask
from flask_ses_mailer import SESMailer
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret'
app.config['AWS_REGION'] = 'us-east-1'
app.config['SES_SOURCE_EMAIL'] = "ses-sender@example.com"
mailer = SESMailer(app)
@app.route('/')
def hello_world():
message = mailer.send(
subject='test send function',
body='This is the test of the body',
to_addresses=''
)
return message
python setup.py test
# or
make test
Sending mail from Amazon SES from your Flask App!
Do your thing, make some MR's.
Please toss up any bugs here: