{% if from_email != envelope_from %}

Envelope-From: {{ envelope_from }}

{% endif %}

From: {{ from_email }}

{% if reply_to %}

Reply To: {% for email in reply_to %} {{ email }}  {% endfor %}

{% endif %}

To: {% for recipient in recipients %} {{ recipient }}  {% endfor %}

Subject: {{subject}}

{% autoescape off %} {{ html_message }} {% endautoescape %}