Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.37 KB

File metadata and controls

24 lines (15 loc) · 1.37 KB

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 = []