Skip to main content

Adds Mandrill support to Flask applications

Project description

A Flask Extension to remove some of the boiler plate encountered when sending emails with Mandrill

Installation

$ pip install flask-mandrill

Usage

from flask import Flask
from flask.ext.mandrill import Mandrill

app = Flask(__name__)
app.config['MANDRILL_API_KEY'] = 'your api key'
mandrill = Mandrill(app)
mandrill.send_email(
    from_email='someone@yourdomain.com',
    to=[{'email': 'someoneelse@someotherdomain.com'}],
    text='Hello World'
)

Release History

0.2 (2015-01-15)

  • Adds support for sending template emails.

0.1.1 (2013-10-25)

  • Added config option MANDRILL_DEFAULT_FROM.

0.1.0 (2012-10-25)

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Mandrill-0.3.tar.gz (2.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page