Django Email Hijacker lets you send emails via your favourite email backend but sends them to a specified email address instead of the intended recipients.
It allows you to send emails via a real backend from a development or staging environment without worrying that an actual user might get sent unintended emails.
pip install django-email-hijacker
In your development or staging settings.py
:
EMAIL_BACKEND = "email_hijacker.backends.hijacker.EmailBackend" HIJACKER_EMAIL_ADDRESS = "hijacker@example.org" HIJACKER_EMAIL_BACKEND = "your.real.EmailBackend"
Note
Django Email Hijacker uses Django Pods.
It allows for prefix style settings:
HIJACKER_EMAIL_ADDRESS = "hijacker@example.org" HIJACKER_EMAIL_BACKEND = "your.real.EmailBackend"
Or dictionary style settings:
HIJACKER = { "EMAIL_ADDRESS": "hijacker@example.org", "EMAIL_BACKEND": "your.real.EmailBackend" }
tox
All contributions and comments are welcome.
- Fix #2: exclude tests package
- Switch to Semantic Versioning
- Fix issue with parse_requirements for newer versions of pip (>=6.0.0)
- Use Django Pods for settings
- Unit tests now use Django 1.7 final instead of RC1
- Initial