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!
pip install django-sendgrid-v5
- In your project's settings.py script:
- Set
EMAIL_BACKEND = "sendgrid_backend.SendgridBackend"
- Add
SENDGRID_API_KEY = os.environ["SENDGRID_API_KEY"]
- To toggle sandbox mode (when django is running in DEBUG mode), set
SENDGRID_SANDBOX_MODE_IN_DEBUG = True/False
. This value is True by default.
- Set