Skip to content

uw-it-aca/django-saferecipient-email-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status PyPi Version Python versions

django-saferecipient-email-backend

This app provides an email backend for Django that will re-route all emails to a safe email address provided by your project's settings.py. This uses the SMTP email backend to actually send the email.

This makes it so you can use any email address you like during testing, without worrying about spamming people. The original To:, CC:, BCC: and From: will be attached.

Specific email addresses, domains, etc. that will bypass the safe email routing can be added via a regex-based safelist.

Configuration

To use this, put these in your settings.py:

EMAIL_BACKEND='saferecipient.EmailBackend'
SAFE_EMAIL_RECIPIENT='your email address, or a team testing address'

# Optional
SAFE_EMAIL_SAFELIST = []