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.

  2. SENDGRID_ECHO_TO_STDOUT will echo to stdout or any other file-like object that is passed to the backend via the stream kwarg.

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.7.1.tar.gz (9.0 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.7.1-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-sendgrid-v5-0.7.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.1 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.10

File hashes

Hashes for django-sendgrid-v5-0.7.1.tar.gz
Algorithm Hash digest
SHA256 c69ba0171b260c25def8048b69d931b46fbd8360b9aff4eb5477a284260fce0c
MD5 770f6449f609fe0535840a6ce5968f60
BLAKE2b-256 077a84480d5960d9f56710e0acd6cc289f0707369a0dabfce4e4f9c783da299e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sendgrid_v5-0.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.1 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.10

File hashes

Hashes for django_sendgrid_v5-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 471f718ae02c775f0f2ba8f901d5abb486b016805af8b2ac543ac9ff2f4164ec
MD5 c5f4ffb7d5c1af45075ddb14cb465288
BLAKE2b-256 23c2c4ba6ef33dec02fbf63dd257312a3f126b54ec09c4c8bbd80941a93bfdac

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