Simple backend to intercept emails during development
Django email interceptor provides email backends to intercept outgoing mail and mail them to a specified email instead.
Install via pip
pip install django-email-interceptor
Add to installed apps:
INSTALLED_APPS = ( ... 'email_interceptor', ... )
Change the email backend to use interceptor and set an email to send the intercepted mail to:
EMAIL_BACKEND = 'email_interceptor.backends.SmtpInterceptorBackend' INTERCEPTOR_EMAIL = 'firstname.lastname@example.org'
To run tests, install the requirements for testing and run!
pip install -r requirements/test.txt python runtests.py