/django-mailer

mail queuing and management for the Django web framework

Primary LanguagePythonMIT LicenseMIT

django-mailer

django-mailer by James Tauber <http://jtauber.com/> https://github.com/pinax/django-mailer

A reusable Django app for queuing the sending of email

Simple usage instructions:

In settings.py:

EMAIL_BACKEND = "mailer.backend.DbBackend"

In a cron job file:

*       * * * * (/path/to/your/python /path/to/your/manage.py send_mail >> ~/cron_mail.log 2>&1)
0,20,40 * * * * (/path/to/your/python /path/to/your/manage.py retry_deferred >> ~/cron_mail_deferred.log 2>&1)

See usage.rst in the docs for more advanced use cases - https://github.com/pinax/django-mailer/blob/master/docs/usage.rst#usage

To run tests:

$ ./manage.py test mailer

To run tests on all versions:

$ pip install tox
$ tox