Skip to main content

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 test environment. It extends the default SMTP backend to intercept outgoing emails and instead send them to a single email address.

It does not intercept emails going to the site admins (as defined by the ADMINS setting) so it will not impact the 500 error emails.

Requirements

  • Django >= 1.2

Installation

To install django-email-bandit via pip:

pip install django-email-bandit

Or you can from the latest version from Github manually:

git clone git://github.com/caktus/django-email-bandit.git
cd django-email-bandit
python setup.py install

or via pip:

pip install -e git+https://github.com/caktus/django-email-bandit.git

For your test environment you should enable the backend:

EMAIL_BACKEND = 'bandit.backends.HijackBackend'

and set the email which will receive all of the emails:

BANDIT_EMAIL = 'bandit@example.com'

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-email-bandit-0.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file django-email-bandit-0.1.tar.gz.

File metadata

File hashes

Hashes for django-email-bandit-0.1.tar.gz
Algorithm Hash digest
SHA256 02c9b55d4fd5f3f0511aab3af2f8514e506b7e36c7db51ed6720c0d031d0105a
MD5 3e2970fb9bbf88f6550b70cd8b7f8d94
BLAKE2b-256 9b0c042abb14e86558f60ea03216d068142bd5ea763de064c8e7fdd20c1eb31e

See more details on using hashes here.

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