Skip to main content

Send all mail to a desired address during development

Project description

django-dev-email
================

Installation
------------

pip install django-dev-email

Add the class to your ``EMAIL_BACKEND`` setting

EMAIL_BACKEND = 'dev_email.backends.development.EmailBackend'

Add the email address to your settings file

DEV_EMAIL = 'yourdevaddress@whatever.com'


Suggestions, Bugs, Comments? Open a Github issue.

Why?
----

This was developed as an alternative to having small if checks to send all mail to a development
address. We initially wanted to just override the ``_send`` method, but since it's marked as private,
we decided to copy the class and rewrite the parts I needed. We are certainly open to other ways
and methods of implementing this.

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-dev-email-1.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file django-dev-email-1.0.tar.gz.

File metadata

File hashes

Hashes for django-dev-email-1.0.tar.gz
Algorithm Hash digest
SHA256 90b6654c61edd777b8e85309f747f7486a56e25a9ffaa62f2360494e9a6f8cad
MD5 b1c6b99ac1423f8e0f8e8dab029fa768
BLAKE2b-256 eba1d4ab66ace53b3ffd3d80daa83029d008ccd88cc9835d1fb3bd1de60113ba

See more details on using hashes here.

Provenance

Supported by

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