Skip to content

Commit

Permalink
Show attachment support on html email header
Browse files Browse the repository at this point in the history
  • Loading branch information
say-yawn committed Sep 9, 2020
1 parent 62492e1 commit 2905aa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions emails/templates/emails/wrapped_email.html
Expand Up @@ -39,6 +39,9 @@
<td width="100%" align="center" style="line-height: 150%;">
<p style="color: #363959; font-size: 13px; font-family: sans-serif; margin-top: 0; margin-bottom: 0;">
This message was forwarded from <span style="font-family: sans-serif; font-weight: bolder; color: #20123a; text-decoration: none; font-size: 13px;">{{ display_email|safe }}</span> by <a href="{{ SITE_ORIGIN }}" target="_blank" style="font-family: sans-serif; color: #20123a; text-decoration: underline; font-weight: bolder; font-size: 13px;">Firefox Relay</a>.
{% if has_attachment %}
<br>Emails with a maximum size of <b>150KB</b> have attachments support. To learn more check our <a href="{{ faq_page }}" target="_blank" style="font-family: sans-serif; color: #20123a; text-decoration: underline; font-weight: bolder; font-size: 13px;">FAQ page</a>.
{% endif %}
</p>
</td>
</tr>
Expand Down
2 changes: 2 additions & 0 deletions emails/views.py
Expand Up @@ -315,6 +315,8 @@ def _sns_message(message_json):
'email_to': to_address,
'display_email': display_email,
'SITE_ORIGIN': settings.SITE_ORIGIN,
'has_attachment': bool(attachments),
'faq_page': settings.SITE_ORIGIN + reverse('faq')
})
message_body['Html'] = {'Charset': 'UTF-8', 'Data': wrapped_html}

Expand Down

0 comments on commit 2905aa7

Please sign in to comment.