django-database-email-backend

A django EmailBackend for debugging that saves Emails in the database instead of delivering them.


License
BSD-3-Clause
Install
pip install django-database-email-backend==0.2.1

Documentation

django-database-email-backend

django-database-email-backend is a simple email backend for django that delivers emails to the database. All sent emails can be reviewed and searched in admin. This can be practical while developing where the console backend can't be used (e.g on a development or staging server).

Note

Currently only the plaintext part of the email and the attachments are saved accessable. Future versions of django-database-email-backend will also display alternative content, especially html.

Installation:

pip install django-database-email-backend

Add database_email_backend to INSTALLED_APPS and run manage.py syncdb or manage.py migrate django_database_email_backend if you are using South.

Add the email backend setting:

EMAIL_BACKEND = 'database_email_backend.backend.DatabaseEmailBackend'