Reroute outgoing mail (for use in dev/testing/staging environments)
This app fills a very specific use case: you want to test email delivery in a QA environment and your clients, as admins, want to receive real emails, but you don’t want the QA process to trigger emails to real end users.
With a couple settings, you can ensure only email to specified addresses will go to the original recipients, and all others will go to a catch-all address or domain.
pip install django-hijackemail
Add hijackemail to your INSTALLED_APPS. In your environment’s settings file, set your EMAIL_BACKEND to hijackemail.backends.HijackEmailBackend.
Then configure the settings below as necessary.
A function which takes an email address, and returns a transformed version of it.