Create email templates
developTemplates are expected to be located in your app's template directory under a templated_email/ subdirectory (e.g., my_app/templates/templated_email/welcome.email).
Use Django template blocks to define different parts of the email:
{% block subject %}: The email subject line.{% block plain %}: The plain-text version of the email.{% block html %}: The HTML version of the email.
If you provide an html block but no plain block, the library will attempt to generate the plain text from the HTML using the html2text package if it is installed.
{% block subject %}My subject for {{username}}{% endblock %}
{% block plain %}
Hi {{full_name}},
You just signed up!
{% endblock %}
{% block html %}
<p>Hi {{full_name}},</p>
<p>You just signed up!</p>
{% endblock %}