Skip to main content

Django email backend that saves emails to .eml files. Such files can be opened directly in Outlook or Mail.app.

Project description

Django has filebased email backend that is handy for inspecting outgoing emails during development. But this backend saves emails to ‘.log’ files and it is not clear how to view them in email client. This is especially important for html emails.

eml_email_backend saves outgoing emails to ‘.eml’ files. This way emails can be opened directly in MS Outlook or Mail.app or previewed in OS X Finder by simply pressing space over the file.

Installation

$ pip install django-eml-email-backend

Usage

Setup the django email backend in your local_settings.py:

EMAIL_BACKEND = 'eml_email_backend.EmailBackend'
EMAIL_FILE_PATH = 'path/to/output/folder/'

Limitations

Full eml format is not supported, file extensions are just changed from “.log” to “.eml” by this app. It works in most cases. Patches for better eml support are welcome.

See also: https://code.djangoproject.com/ticket/15793

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

django-eml-email-backend-0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file django-eml-email-backend-0.1.tar.gz.

File metadata

File hashes

Hashes for django-eml-email-backend-0.1.tar.gz
Algorithm Hash digest
SHA256 9dbd4d7f73455f9a7961670595bc88e85b429dfda88b007f47158712389649c3
MD5 3960c98c713621c2b8eedfb91f7ba8ad
BLAKE2b-256 7178c26ab0ca6fd78a465b59263c1603b36a4cb8a796a3536565e9cd15e13caf

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