Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Simple backend to intercept emails during development

Project description

Django email interceptor provides email backends to intercept outgoing mail and mail them to a specified email instead.

Quickstart

Install via pip

pip install django-interceptor

Add to installed apps:

INSTALLED_APPS = (
    ...
    'interceptor',
    ...
)

Change the email backend to use interceptor and set an email to send the intercepted mail to:

EMAIL_BACKEND = 'interceptor.backends.SmtpInterceptorBackend'

INTERCEPTOR_EMAIL = 'test@example.com'

Testing

To run tests, install the requirements for testing and run!

pip install -r requirements/test.txt
python runtests.py

Project details


Release history Release notifications | RSS feed

This version

0.1

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page