{% extends "admin/change_form.html" %} {% block content %}

You should test your HTML email in a browser first before pasting it in the box. Unlike a web page, all of your styles should be included in the '<body>' and any '<img>' tags should refer to full URLs in their 'src' attribute.

You can use mail merge style placeholders in your templates to include dynamic content that is specific to each customer. Use the following format:

Dear {{first_name}} {{last_name}}

If you are sending emails to external customers, you should include a link for them to unsubscribe (opt out) from receiving future emails. The system provides you with a placeholder called {{unsubscribe_url}} which you would use like this in HTML:

<p>To unsubscribe from this mailing list, go to the following URL: <a href="{{unsubscribe_url}}">{{unsubscribe_url}}</a></p>
and in plain text:
To unsubscribe from this mailing list, go to the following URL: {{unsubscribe_url}}

If you wish to track users who open your email, include a placeholder called {{tracking_image}} in the HTML version only:

{{tracking_image}}


{{ block.super }} {% endblock %}