Skip to main content

An implementation of Django's EmailBackend compatible with sendgrid-python v5+

Project description

# django-sendgrid-v5 [![Latest Release](]( [![Travis Build Status](](

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

  1. pip install django-sendgrid-v5
  2. In your project’s script: 1. Set EMAIL_BACKEND = “sendgrid_backend.SendgridBackend” 2. Set the SENDGRID_API_KEY in to your api key that was provided to you by sendgrid. SENDGRID_API_KEY = os.environ[“SENDGRID_API_KEY”]

### Other settings

  1. 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

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_sendgrid_v5-0.7.0-py2.py3-none-any.whl (5.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-sendgrid-v5-0.7.0.tar.gz (8.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page