Skip to content

joeyespo/django-q-email

Repository files navigation

Django Q Email

Current version on PyPI

django-q-email is a reusable Django app for queuing the sending of email with Django Q.

Installation

Install the latest version with pip:

$ pip install django-q-email

Then in settings.py:

EMAIL_BACKEND = 'django_q_email.backends.DjangoQBackend'

Then send email in the normal way, as per the Django email docs, and they will be sent in a background task. See Django Q for more information](https://github.com/Koed00/django-q).

Configuration

DJANGO_Q_EMAIL_BACKEND - Backend used in the background task (default: django.core.mail.backends.smtp.EmailBackend) DJANGO_Q_EMAIL_USE_DICTS - Store Python dictionaries instead of pickled EmailMessage and EmailMultiAlternatives (default: True) DJANGO_Q_EMAIL_ERROR_HANDLER - Optional function to be called if sending fails (called as DJANGO_Q_EMAIL_ERROR_HANDLER(email_message, exception))

Requirements

Contributing

  1. Check the open issues or open a new issue to start a discussion around your feature idea or the bug you found
  2. Fork the repository and make your changes
  3. Create a new pull request