Send all mail to a desired address during development
Project description
Django Development Email
========================
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.
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.
What's Next?
------------
========================
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.
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.
What's Next?
------------
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-dev-email-1.0.2.tar.gz
.
File metadata
- Download URL: django-dev-email-1.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8937b105fd8ada72d2c2300a5898e3e5033ce26926ee596dc124481665d315e6 |
|
MD5 | d3bb4a86fc996534d7164d36a97ddd86 |
|
BLAKE2b-256 | f68d0e81aec30c79466e1ee569795a305f078869a89ff457adff50156972c043 |
File details
Details for the file django_dev_email-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_dev_email-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1648bfe6ee46b044dd3e93ecc50f33b3fbbf1bc0d80ccee021fb0f83d3a75b0 |
|
MD5 | b10ad3fc34cf4cf98812057ae94fe22d |
|
BLAKE2b-256 | 7446a3fa2ffe25edb896b6a4c127a8dd073ed40220b728a8176205ec28ec0fa8 |