emails: Log emails that are queued or sent in dev environment.

Tweaked by tabbott to add some comments and clarify the code.
This commit is contained in:
Vishnu Ks
2017-09-24 04:09:19 +05:30
committed by Tim Abbott
parent bb1b771c44
commit f58c87917e
5 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
{% if failed %}
<p>{{template}} failed to render: {{ reason }}</p>
{% else %}
<h4>From: {{ from_email }}</h4>
<h4>To:
{% for recipient in recipients %}
{{ recipient }}&nbsp;
{% endfor %}
</h4>
<h4>Subject: {{subject}}</h4>
{% autoescape off %}
{{ html_message }}
{% endautoescape %}
<pre>{{ body }}</pre>
{% endif %}
<hr/>