Django email backend for celery.
Project description
A Django 1.2+ email backend that uses a Celery queue for out-of-band sending of the messages.
Using django-celery-email
To enable django-celery-email for your project you need to add djcelery_email to INSTALLED_APPS:
INSTALLED_APPS += ("djcelery_email",)
You must then set django-celery-email as your EMAIL_BACKEND:
EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend'
By default django-celery-email will use Django’s builtin SMTP email backend for the actual sending of the mail. If you’d like to use another backend, you may set it in CELERY_EMAIL_BACKEND just like you would normally have set EMAIL_BACKEND before you were using Celery. In fact, the normal installation procedure will most likely be to get your email working using only Django, then change EMAIL_BACKEND to CELERY_EMAIL_BACKEND, and then add the new EMAIL_BACKEND setting from above.
After this setup is complete, and you have a working Celery install, sending email will work exactly like it did before, except that the sending will be handled by your Celery workers.
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
Hashes for django-celery-email-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23adf76785a5049dd28ef7dfb085966c20fab86cd942c025b0ef8934b7610d07 |
|
MD5 | 7fba95e01cd4d5d36ff3d1d0579bdf49 |
|
BLAKE2b-256 | f1ac819ebffdf70d44071332dc8d875cebc372748616861607cd4f77d77f3a93 |