An Email HTML template for Django
Project description
X-Net Django Email Template
This is the default email template that we use in our company for sending emails with django (registration, password forgot, eg.)
Installation
- pip install
x_net_django_email_template - Add
x_net_django_email_templateto INSTALLED_APPS
Usage
When extends the default.html you can overwrite the blocks:
{% extends "email/default.html" %}
{% load html_email i18n %}
{% block title %}Title{% endblock %}
{% block header_title %}Header title{% endblock %}
{% block main %}
<p>This is an example of text.</p>
<table role="presentation">
<tr>
<td class="button-wrapper">
<table class="button" role="presentation">
<tr>
<td>
<a href="#">Click me</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
{% endblock %}
{% block footer %}
<p><small>{% trans "This is an automatically generated email, please do not reply to this message." %}</small></p>
{% endblock %}
Templatetags
With the full_static template tag you can insert absolute urls in the email template.
{% load html_email %}
<link rel="stylesheet" href="{% full_static "css/email/html-email.min.css" %}" />
Compatibility
You can inline css to this HTML template with the X-Net Email Inliner. We have test this HTML template with the following email client:
- Apple Mail 13
- Outlook 2007
- Outlook 2010
- Outlook 2013
- Outlook 2013 with 120 DPI
- Outlook 2016 (macOS)
- Outlook 2016
- Outlook 2016 with 120 DPI
- Outlook 2019
- Outlook 2019 with 120 DPI
- Outlook Office 365
- Thunderbird
- Gmail App
- Samsung Mail
- Mail/iOS
- Outlook Android
- Outlook iOS
- Office 365 (Browser)
- Gmail (Browser)
- GMX.de (Browser)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file x-net-django-email-template-1.0.3.tar.gz.
File metadata
- Download URL: x-net-django-email-template-1.0.3.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f7d5ebe8ebcbcfbeeecad11b013f2070890f41972c7ae1f2700f725962f6365
|
|
| MD5 |
1a31eba5ef648d5555809d68b89d67c5
|
|
| BLAKE2b-256 |
661ae60caebb038cae7e1071c403e5d38c48bbc29f26a9d313ad095967baef70
|
File details
Details for the file x_net_django_email_template-1.0.3-py3-none-any.whl.
File metadata
- Download URL: x_net_django_email_template-1.0.3-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9cc3ce21529f0b71dd762c7e7474eaeb94dc1ada193acc156544a651d7daceb
|
|
| MD5 |
da2fc8f0415575b4b6b142d0587b9657
|
|
| BLAKE2b-256 |
d635a78430bf298e3f5883e39aa80b57d9d286058293ffa2a77ade6aa4d855a4
|