Skip to main content

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

  1. pip install django-sendgrid-v5

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

Source Distribution

django-sendgrid-v5-0.6.893.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sendgrid_v5-0.6.893-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-sendgrid-v5-0.6.893.tar.gz.

File metadata

File hashes

Hashes for django-sendgrid-v5-0.6.893.tar.gz
Algorithm Hash digest
SHA256 b2c0cc5ecc00c661ea6b7e7757a4cf83b14fb662aab62250248e0ad0f8d6be1c
MD5 2006d7068b675eb9da65dd32cbe0be06
BLAKE2b-256 24aa8160ba426f071f5f44119a18696083d6789a32b7733fd5c24e40b73268e8

See more details on using hashes here.

File details

Details for the file django_sendgrid_v5-0.6.893-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_sendgrid_v5-0.6.893-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24c615e5b5d21fd74b2641f0c2e55fc5eaa0024671d6c9661b2da1935c8a888b
MD5 6759e93064fb1d13f6b16c814b7d1661
BLAKE2b-256 117e7e01a5595a0f6310ef1b4f6ef4644cef17514242f18625d1d9efa4ecde39

See more details on using hashes here.

Supported by

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