mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
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:
16
templates/zerver/email.html
Normal file
16
templates/zerver/email.html
Normal 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 }}
|
||||
{% endfor %}
|
||||
</h4>
|
||||
<h4>Subject: {{subject}}</h4>
|
||||
{% autoescape off %}
|
||||
{{ html_message }}
|
||||
{% endautoescape %}
|
||||
<pre>{{ body }}</pre>
|
||||
{% endif %}
|
||||
<hr/>
|
||||
Reference in New Issue
Block a user