An implementation of Django's EmailBackend compatible with sendgrid-python v5+
Project description
# django-sendgrid-v5 [![Latest Release](https://img.shields.io/pypi/v/django-sendgrid-v5.svg)](https://pypi.python.org/pypi/django-sendgrid-v5/) [![Travis Build Status](https://travis-ci.org/sklarsa/django-sendgrid-v5.svg)](https://travis-ci.org/sklarsa/django-sendgrid-v5)
This package implements an email backend for Django that relies on sendgrid’s REST API for message delivery.
It is under active development, and pull requests are more than welcome!
To use the backend, simply install the package (using pip), set the EMAIL_BACKEND setting in Django, and add a SENDGRID_API_KEY key (set to the appropriate value) to your Django settings.
## How to Install
pip install django-sendgrid-v5
In your project’s settings.py script: 1. Set EMAIL_BACKEND = “sendgrid_backend.SendgridBackend” 2. Set the SENDGRID_API_KEY in settings.py to your api key that was provided to you be sendgrid. SENDGRID_API_KEY = os.environ[“SENDGRID_API_KEY”]
### Other settings
To toggle sandbox mode (when django is running in DEBUG mode), set SENDGRID_SANDBOX_MODE_IN_DEBUG = True/False. 1. To err on the side of caution, this defaults to True, so emails sent in DEBUG mode will not be delivered, unless this setting is explicitly set to False.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-sendgrid-v5-0.6.88.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63cc3b10de934eccd2c7b7c90a9acfdf0bc945d09f2b6740baffb5a586d0cc94 |
|
MD5 | c633e1281635cfe7f71c18bbf9e75992 |
|
BLAKE2b-256 | 88598d7c9e7334e27cad869ba18016ae67aaffbd45aa37791f04048de69861ad |
Hashes for django_sendgrid_v5-0.6.88-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858e79f219fcd2a1bc419aa01fa2b628ad51a58b565c680f6cd440eaf40bb45f |
|
MD5 | 602144becf84b214bbc0b218b9d111dc |
|
BLAKE2b-256 | 9bdfe1ada8f63b33d7a76fc9a417aae28143bd3d12232c95650aa20b8fa586e5 |