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$',
)
====================
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-filtered-mail-0.2.tar.gz
.
File metadata
- Download URL: django-filtered-mail-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7e2377a085ba75ecc39e70e73345bfdf9a99e3e717e7b6b43f740572f391d8 |
|
MD5 | 46b4d9a272d44763ab97a7192135283e |
|
BLAKE2b-256 | 869c1b1dbd0e4abeec097ca294064e9419fdefa875902ea5726b66561a9e70b4 |