Markdown template based HTML and text emails for Django.
Project description
emark
Markdown template based HTML and text emails for Django.
- simple email templates with markdown
- support for HTML and text emails
- i18n support
- built-in UTM tracking
Setup
python3 -m pip install emark
# settings.py
INSTALLED_APPS = [
'emark',
# ...
]
python3 manage.py migrate
Usage
<!-- myapp/email.md -->
# Hello World
Hi {{ user.short_name }}!
# myapp/emails.py
from emark.message import MarkdownEmail
class MyMessage(MarkdownEmail):
subject = "Hello World"
template_name = "myapp/email.md"
# render and send the email
MyMessage(language="en", to=["peter.parker@avengers.com"]).send()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emark-1.0rc1.tar.gz
(9.7 kB
view details)
Built Distribution
emark-1.0rc1-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file emark-1.0rc1.tar.gz
.
File metadata
- Download URL: emark-1.0rc1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a94bb8336037c2761d8b109286f2c996ba15fb9c23170974d64d4968ee32fa8 |
|
MD5 | 22d70bf7056b56ce7f3a13cf0fdc97cf |
|
BLAKE2b-256 | 358716a9c1a5170e932aa594e0c7c92f04df8a42ada5ce45cb6ab26cce9e020d |
File details
Details for the file emark-1.0rc1-py3-none-any.whl
.
File metadata
- Download URL: emark-1.0rc1-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c2d3973c4f3b028abba1f1db6d2589d88a7075b087a7ac8b413eb82fe724c2 |
|
MD5 | abd412a4ab48391cbf1f4473ef50ba5c |
|
BLAKE2b-256 | 86a8ecdf2424fa47d72e1d738e2bb05bd26bdd2bb8d0d1b556b131d304159314 |