Django Mail Viewer
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:
Metadata
Release files for django-mail-viewer 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_mail_viewer-2.2.0.tar.gz | 32.9 kB | Without provenance | Details for django_mail_viewer-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_mail_viewer-2.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_mail_viewer-2.2.0-py2.py3-none-any.whl |
Total release size: 56.5 kB
Release files / django_mail_viewer-2.2.0.tar.gz
| Download URL | django_mail_viewer-2.2.0.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
638b6d57bfcb9306e1774e5a9e77b960963c87443fd69906efcece496639ccf0
|
|
BLAKE2b-256 checksum How to use checksums |
b8481aab7009bd71aafa9d6f0a0f2fff40c8d7bc1ce465cce892242594c041e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / django_mail_viewer-2.2.0-py2.py3-none-any.whl
| Download URL | django_mail_viewer-2.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ca5f6afaf1f4c212a90953907d6d946a90e595ed9fce49da6c3a3ea0034c9631
|
|
BLAKE2b-256 checksum How to use checksums |
81740ee6455c161edb0c18fb7f7b2f314d31b6a4fc69d955022b967eb141f776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for django-mail-viewer 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.