# Django Email HTML
[](https://travis-ci.org/ramusus/django-email-html)
This application can be used for quickly switching all emails from plain-text to html. For using it you need to do 2 steps:
add email_html to INSTALLED_APPS higher, then other third-party applications;
change all email templates to new html version;
Application substitutes built-in send_mail function by new smart send_mail function.
build-in:
send_mail(subject, message, from_email, recipient_list, fail_silently=False, auth_user=None, auth_password=None, connection=None)
new:
send_mail(subject, message, from_email=None, recipient_list=None, fail_silently=False, auth_user=None, auth_password=None, connection=None)
## Few new features:
Message attribute using for html or plain-test message body. If it contains html, plain-text body will generated automatically based on html version;
from_email attribute is not required. By default it will set from settings.DEFAULT_FROM_EMAIL;
Depending on settings.EMAIL_ADMIN_DUPLICATE all copies of email messages also sending to ADMIN emails (using bcc header);
New function can be used:
send_mail(subj, html, recipient_list=emails)
## Requirements:
beautifulsoup4
w3m (for generating plain-text from html)
## Important notes:
Place email_html application in INSTALLED_APPS before all other applications, which sending emails you need to make html based by default;
Html body must contains <html> tag, otherwise function would think this is a plain-text body;
Metadata
Release files for django-email-html 0.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-email-html-0.2.0.tar.gz | 8.7 kB | Without provenance | Details for django-email-html-0.2.0.tar.gz |
Release files / django-email-html-0.2.0.tar.gz
| Download URL | django-email-html-0.2.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
164fe6385418671bc9f1ab3c2032761a0a392365f98b7f5bf12523450abdd35f
|
|
BLAKE2b-256 checksum How to use checksums |
294a495808616a0005054dc607ad20486baeb2f52d1bfb17f67bf061f30d1cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-email-html 0.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.