django-emailit
TODO: make the docs nicer
Deadsimple html email sending.
add emailit for the bundled templates and absolute for easy full absolute urls to INSTALLED_APPS.
usage:
import emailit.api
context = {
'my_obj': 'whatever',
}
emailit.api.send_mail(['email@domain.com'], context, 'mymails/example_email')
now add these templates:
mymails/example_email.body.html mymails/example_email.body.txt mymails/example_email.subject.txt
the convention is, that the body templates should extend emailit/base_email.body.html / emailit/base_email.body.txt and overrid the content block. This makes it easy to provide a site-wide look to all emails using this system by overriding emailit/base_email.body.*.
If the body.html template is not found, a simple text email is sent. If the body.txt template is missing, it will be a pure html email.
HTML emails are passed through premailer.
language can be passed into the send_mail function to override the active language while rendering the mail.
The body templates will contain the rendered subject variable in their context. subject can also be passed directly into send_mail.
Metadata
Release files for django-emailit 0.2.4
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-emailit-0.2.4.tar.gz | 4.6 kB | Without provenance | Details for django-emailit-0.2.4.tar.gz |
Release files / django-emailit-0.2.4.tar.gz
| Download URL | django-emailit-0.2.4.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b84e7743089e5a68a158efdcad4fd8c00f875e4e73d96fae2e6915e69d34841e
|
|
BLAKE2b-256 checksum How to use checksums |
31f136e336c7b0aeb3e5093e7e254600e99d5a2f0572777bc68e2c9783a55e0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Security for django-emailit 0.2.4
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.