Skip to main content

View emails in development without actually sending them.

Project description

https://badge.fury.io/py/django-mail-viewer.png https://github.com/jmichalicek/django-mail-viewer/workflows/Python%20package/badge.svg

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:

INSTALLED_APPS = (
    ...
    'django_mail_viewer',
    ...
)

Add Django Mail Viewer’s URL patterns:

# You may want to only include this in development environments

urlpatterns = [
    ...
    path('', include('django_mail_viewer.urls')),
    ...
]

Set your EMAIL_BACKEND in settings.py:

EMAIL_BACKEND = 'django_mail_viewer.backends.locmem.EmailBackend'

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:

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_mail_viewer-2.2.0.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

django_mail_viewer-2.2.0-py2.py3-none-any.whl (23.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_mail_viewer-2.2.0.tar.gz.

File metadata

  • Download URL: django_mail_viewer-2.2.0.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for django_mail_viewer-2.2.0.tar.gz
Algorithm Hash digest
SHA256 638b6d57bfcb9306e1774e5a9e77b960963c87443fd69906efcece496639ccf0
MD5 8ce56760837fd474dcb32cd8effb137c
BLAKE2b-256 b8481aab7009bd71aafa9d6f0a0f2fff40c8d7bc1ce465cce892242594c041e2

See more details on using hashes here.

File details

Details for the file django_mail_viewer-2.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_mail_viewer-2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ca5f6afaf1f4c212a90953907d6d946a90e595ed9fce49da6c3a3ea0034c9631
MD5 ad7eb3213214a2bf9d7fe04d7dd33f01
BLAKE2b-256 81740ee6455c161edb0c18fb7f7b2f314d31b6a4fc69d955022b967eb141f776

See more details on using hashes here.

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