Skip to main content

Queening and storing email backed for django

Project description

Queening and storing EMAIL_BACKEND for django.

https://github.com/wooyek/django-email-queue

https://img.shields.io/travis/wooyek/django-email-queue.svg https://img.shields.io/coveralls/wooyek/django-email-queue.svg https://img.shields.io/pypi/v/django-email-queue.svg?maxAge=2592000 https://img.shields.io/pypi/dm/django-email-queue.svg?maxAge=2592000

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 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


Download files

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

Source Distribution

django-email-queue-0.9.15.zip (20.9 kB view details)

Uploaded Source

File details

Details for the file django-email-queue-0.9.15.zip.

File metadata

File hashes

Hashes for django-email-queue-0.9.15.zip
Algorithm Hash digest
SHA256 6d7c2d6851b0e79fe631bc2c1fa452dcbda4f60d0bd7c3b2d988cc493168b9cb
MD5 09d71621ed4c412735663e5bca8887d6
BLAKE2b-256 10e8aa1ce89a0d6288102ebb4c22d16e754c1979e21eb39a650fbe61f7b53f21

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page