Queening and storing email backed for django
Project description
Queening and storing EMAIL_BACKEND for django.
https://github.com/wooyek/django-email-queue
No change in django send_messages usage to get message storing
You don’t have to change the way you send messages, this app will plugin into the usual django plumbing.
This way all the email send though django EMAIL_BACKEND will get stored for auditing.
No overhead overhead infrastructure
You don’t have to setup overhead infrastructure (e.g. celery, redis and rabbitmq) just to send emails asynchronously. You can use a simple worker that will send queued emails.
When you get big and having a MQ and all that is a good choice, all you have to to is set EMAIL_QUEUE_EMAIL_BACKEND to ‘djcelery_email.backends.CeleryEmailBackend’. This way you get message storing for auditing and will use pro setup for asynchronously ran tasks.
Usage
This is a plugin replacement for your current EMAIL_BACKEND. You’ll still use it to send actual messages, but before them they’ll get stored and queued in models visible from admin panel.
EMAIL_BACKEND = 'django_email_queue.backends.EmailBackend'
EMAIL_QUEUE_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
INSTALLED_APPS = [
...
'django_email_queue',
]
You’ll be able to send them and clear the queue through from a management command for example using cron jobs.
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-email-queue-0.9.14.zip
.
File metadata
- Download URL: django-email-queue-0.9.14.zip
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f31019a7ccd1a761219d1671fb38862db7e20769004f9a5a84ad1d6b721a7d |
|
MD5 | 08e1b5a280610a5bad012546637c5158 |
|
BLAKE2b-256 | f434c0109cc1fce3f4208e995da04fae69831c2260656a77d4900b1d3420c8f5 |