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.2.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file Flask-Mandrill-0.2.tar.gz.

File metadata

File hashes

Hashes for Flask-Mandrill-0.2.tar.gz
Algorithm Hash digest
SHA256 46ee974790cdc29bd150f9a1abf6f599ca3f634b5fc5e9fe7cf399c1adfdcdab
MD5 e6870f0db8a77289199876b520aaa1a4
BLAKE2b-256 fcb12e0ef58082897088525b17466a4e22855a7aad3791df8b7b368cee77f66f

See more details on using hashes here.

Provenance

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