django-mail-viewer

View emails in development without actually sending them.


Keywords
django-mail-viewer, django, email
License
MIT
Install
pip install django-mail-viewer==2.1.0

Documentation

Django Mail Viewer

image

image

View emails in development without actually sending them.

Documentation

The full documentation is at https://django-mail-viewer.readthedocs.io.

Quickstart

Install Django Mail Viewer:

pip install django-mail-viewer

Add it to your `INSTALLED_APPS`:

Add Django Mail Viewer's URL patterns:

Set your EMAIL_BACKEND in settings.py:

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

TODO

  • Passthrough backend - store the email for display in the views but also pass to another backend which may actually send
  • Redis backend using Redis specific functionality for cleaner code and less risk of bugs vs the django cache backend
  • Memcached backend
  • File based backend - store each email as its own file
  • Other backends? ElasticSearch? MongoDB?
  • Separate views for each of html, plaintext, attachements, etc. to allow for more customization of display?

Credits

Tools used in rendering this package: