Settings for django-email-bandit

These should be in your project


The BANDIT_EMAIL defines the email address which recieves the hijacked emails. This defaults to the SERVER_EMAIL setting if not set:


This option can also be a list to send the hijacked email to multiple addresses:

BANDIT_EMAIL = ['', '']


By default django-email-bandit will intercept all outgoing emails unless they are sent to the SERVER_EMAIL or one of the emails in the ADMINS setting. If there are email addresses that should receive mail from your application normally, add those email addresses to BANDIT_WHITELIST. BANDIT_WHITELIST defaults to an empty tuple:


A domain can also be put in the BANDIT_WHITELIST. This will whitelist any email to that domain: