skillfed

django-templated-mail

Send emails using Django template system.

django-templated-mail v1.1.1 214.6K downloads/30d#9,413 on PyPI100
Permissive license MIT Abandoned released

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-mail

uv

uv add django-templated-mail

poetry

poetry add django-templated-mail

Installing 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

Development Status :: 5 - Production/StableFramework :: Django :: 1.11Framework :: Django :: 1.8Framework :: Django :: 2.0Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6

Tags

django email templatestemplated email djangodjango mail from templatesemail templates djangodjango email renderingtemplate-based emails
django-emailabandoned

More Dynamic Content packages