Skip to main content

django-local-mail-viewer

Ruff Run Test codecov PyPI

django-local-mail-vieweris a Django app that provides a simple email viewer for emails during development. It is used together with the email backend django.core.mail.backends.filebased.EmailBackend. You can browse the emails from a web interface and view the content of those emails as well as any attachments.

Documentation

Install via pipy running pip install django-local-mail-viewer and add django_local_mail_viewer to your INSTALLED_APPS of your development settings file or add this for more flexibility:

if DEBUG:
    INSTALLED_APPS += ['local_mail_viewer']

Add path('mail/', include('local_mail_viewer.urls')) to your urls.py. This can also be done conditionally:

if settings.DEBUG:
    urlpatterns += [path("mail/", include("local_mail_viewer.urls"))]

Set your email config as follows:

EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
DEFAULT_FROM_EMAIL = 'some_name@some_domain.tld'
EMAIL_FILE_PATH = BASE_DIR / 'sent_emails'

You can choose the EMAIL_FILE_PATH to any name, it will be detected automatically.

Don't use the local mail viewer in production!

Usage

Open http://localhost:8000/mail/ in your browser.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_local_mail_viewer-0.0.6.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_local_mail_viewer-0.0.6-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file django_local_mail_viewer-0.0.6.tar.gz.

File metadata

  • Download URL: django_local_mail_viewer-0.0.6.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_local_mail_viewer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b7ba6e44ced39d08f08deaf01d42ec8a3193a1a56d1aeed61f9778a60befd4f3
MD5 3992f40fb0615b1e70616fe6b7da0300
BLAKE2b-256 e1f6d205a8faf5851b8a3afcc80d390efdfab0ff4587a7d30490ac332e782c34

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_local_mail_viewer-0.0.6.tar.gz:

Publisher: python-publish.yml on christianwgd/django-local-mail-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_local_mail_viewer-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for django_local_mail_viewer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 88f8b45f21c7c183e6e0d0735be14a2f2202133c2c340bac7d47cc43abc132a9
MD5 2d9f016c6a182b57b3498ee77bf34643
BLAKE2b-256 910d25ab58ffb50d2f2058d39640ad78aad3486d6ce0bdde2c98cf822eba05c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_local_mail_viewer-0.0.6-py3-none-any.whl:

Publisher: python-publish.yml on christianwgd/django-local-mail-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page