Adds SendGrid support to Flask applications
Project description
A Flask Extension to bridge between Flask-Mandrill and sending emails with SendGrid
Installation
$ pip install flask-sendgrid
Usage
from flask import Flask
from flask.ext.sendgrid import SendGrid
app = Flask(__name__)
app.config['SENDGRID_API_KEY'] = 'your api key'
sendgrid = SendGrid(app)
sendgrid.send_email(
from_email='someone@yourdomain.com',
to=[{'email': 'someoneelse@someotherdomain.com'}],
text='Hello World'
)
Release History
0.1.0 (2016-03-30)
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-SendGrid-0.1.0.tar.gz
(2.2 kB
view hashes)