django-email-bandit is a Django email backend for hijacking email sending in a test environment.
Project description
A Django email backend for hijacking email sending in a staging/test environment. It extends the default SMTP backend to intercept outgoing emails and instead send them to a single email address that you specify. It does not intercept emails going to the site admins (as defined by the ADMINS setting) so it will not interfere with 500 error emails.
You can also configure the hijacked emails to be logged through standard Python logging. Mixin classes are provided to use the same hijack logic for any existing email backend such as django-ses.
Requirements
Python 2.6, 2.7 or 3.3+ (Python 3 support required Django >= 1.5)
Django >= 1.3
Installation
To install django-email-bandit via pip:
pip install django-email-bandit
Add django-email-bandit to your installed apps:
INSTALLED_APPS = ( ... 'bandit', ... )
For your test environment you should enable the backend:
EMAIL_BACKEND = 'bandit.backends.smtp.HijackSMTPBackend'
and set the email which will receive all of the emails:
BANDIT_EMAIL = 'bandit@example.com'
Documentation
Full project documentation is on Read the Docs.
Questions or Issues?
If you have questions, issues or requests for improvements please let us know on Github.
Development sponsored by Caktus Consulting Group, LLC.
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
File details
Details for the file django-email-bandit-1.2.dev0.tar.gz
.
File metadata
- Download URL: django-email-bandit-1.2.dev0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c5c585da0f5a95da7c21f717005a7970c45790115ecaae10d7ad1b8fc76950b |
|
MD5 | 16379d46e186fd79257f896747b616b8 |
|
BLAKE2b-256 | eeed9460db78b2a8a017f62f6a5865e464077bb51e716ef7ed0551914d0986ad |