Skip to main content

Django Email Backend which only sends to whitelisted recipients

Project description

django-filtered-mail
====================

Django Email Backend which only sends to whitelisted recipients

This email backend behaves just like the default SMTP backend
except that it only sends messages to a select set of addresses.

Use the setting `EMAIL_ALLOWED_RECIPIENTS` to specify allowed addresses as
regular expressions. The filter uses the Python 'match' method to check
the regular expressions against the email recipients.

It only matches the email addresses and not the optional 'name' part of
recipients. All addresses are lowercased before matching.

Example settings:

EMAIL_BACKEND = 'django_filtered_mail.mail.EmailBackend'

EMAIL_ALLOWED_RECIPIENTS = (
r'^.*@dreamsolution.nl$',
r'^some.one@gmail.com$',
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-filtered-mail, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-filtered-mail-0.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page