django-templated-mail
Send emails using Django template system.
What it is and what it does
django-templated-mail is a thin wrapper around Django's EmailMultiAlternatives that lets you store email content in template files rather than hardcoding it in Python. Instead of building email bodies as strings, you reference a template by name and pass a context dictionary, and the package renders it using Django's template engine before sending.
It's designed for Django projects where email templates need to be managed separately from code—useful for marketing emails, notifications, or any scenario where non-developers might need to edit email content. The package has no runtime dependencies beyond Django itself, making it lightweight to add to existing projects.
Use it for:
- Store transactional email templates (password resets, confirmations) in your Django template directory instead of Python strings.
- Allow content teams to edit email text without touching code by keeping templates in version control.
- Send multi-part emails (HTML and plain text) by defining both in a single template file.
- Render emails with Django context variables (user names, URLs, dates) pulled from your application state.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sends Django emails using template files instead of inline strings, wrapping EmailMultiAlternatives to load email content from the template system.
No. The package is abandoned (last release February 2018, last commit August 2021) and will not receive updates for Django or Python versions released after that time. Modern Django projects should use built-in template rendering or maintained alternatives. If you are on an old Django version stuck at 1.11 or 2.0, it may work, but there is no path forward.
Install
django-templated-mail on PyPI
pip
pip install django-templated-mailuv
uv add django-templated-mailpoetry
poetry add django-templated-mailInstalling django-templated-mail
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was 2018-02-01 and last commit 2021-08-19—so it will not receive bug fixes or security updates for newly discovered issues.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install django-templated-mail
from django_templated_mail.mail import BaseEmailMessage
email = BaseEmailMessage(
template_name='path/to/template.html',
context={'user': 'name'},
to=['recipient@example.com']
)
email.send()
Requires Django to be installed and configured; email backend must be set up in Django settings.
Verify before relying
- Whether the package works with Django versions released after 2018 without modification.
- Whether it supports modern Python versions beyond those listed in classifiers (3.6 and earlier).
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,116 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 214,614/month — #9,413 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_templated_mail-1.1.1-py3-none-any.whl
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
django-post_officeDjango Post Office queues and sends emails…
permissive · top 15,000 on PyPI
emailsBuild and send HTML and plain-text emails with…
permissive · top 15,000 on PyPI
redmailRedmail simplifies sending emails with Python…
permissive · top 15,000 on PyPI
temp-mailsProvides a unified Python API to generate…
permissive · top 15,000 on PyPI
django-settings-exportProvides a Django template context processor…
permissive · top 15,000 on PyPI
django-multi-email-fieldProvides Django model and form fields to store…
unclear · top 15,000 on PyPI
email-toWraps Python's standard email modules to…
permissive · top 15,000 on PyPI
Flask-MailFlask-Mail adds email-sending functionality to…
permissive · top 5,000 on PyPI
fastapi-mailSends emails and attachments asynchronously…
permissive · top 5,000 on PyPI
django-premailerA Django template tag that converts CSS blocks…
permissive · top 15,000 on PyPI