email_log: Show reply_to address if present.

This commit is contained in:
Vishnu KS 2020-07-14 12:11:10 +05:30 committed by Tim Abbott
parent 108ad84944
commit 788b6a47e8
2 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,11 @@
<h4>From: {{ from_email }}</h4>
{% if reply_to %}
<h4>Reply To:
{% for email in reply_to %}
{{ email }}&nbsp;
{% endfor %}
</h4>
{% endif %}
<h4>To:
{% for recipient in recipients %}
{{ recipient }}&nbsp;

View File

@ -67,6 +67,7 @@ class EmailLogBackEnd(BaseEmailBackend):
context = {
'subject': email.subject,
'from_email': email.from_email,
'reply_to': email.reply_to,
'recipients': email.to,
'body': email.body,
'html_message': html_message,