This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
:Info: A Django application to send email using django's templating system
:Author: Benoît Bar (

Get started


pip install django-template-mail

Configure your mail backend

django-template-mail ships with same backends as Django ( Just replace **django.core.mail** by **templatemail** ::

EMAIL_BACKEND = 'templatemail.backends.smtp.EmailBackend'

Convert HTML into plain text

By default, django-template-backend use a minimalist process to convert HTML into plain text. I suggest you to use **html2text** ( ::

EMAIL_HTML2TEXT = 'html2text.html2text'

You can also write your own method and use it ::

EMAIL_HTML2TEXT = 'your.module.yourhtml2textmethod'

Sending emails

To send email with django-template-mail you simply should use the method described in the Django documentation ( and replacing the **message** attribute as a tuple **('directory_template/template.html', {'key': 'value'}, context_instance)** ::

from django.core.mail import send_mail
'username': request.user.username,
'full_name': request.user.get_full_name(),
'signup_date': request.user.date_joined

django-template-mail looked in django template directories/loaders ::

<p>Hi {{full_name}},</p>
You just signed up using:
<li>username: {{username}}</li>
<li>join date: {{signup_date}}</li>
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-template-mail-0.1.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Apr 21, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting