From 2905aa7032123e0653f3e5bbe3d4af4568f75b17 Mon Sep 17 00:00:00 2001 From: Se Yeon Kim Date: Wed, 9 Sep 2020 15:30:06 -0500 Subject: [PATCH] Show attachment support on html email header --- emails/templates/emails/wrapped_email.html | 3 +++ emails/views.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/emails/templates/emails/wrapped_email.html b/emails/templates/emails/wrapped_email.html index c3fd499aa8..ae8b86b1a4 100644 --- a/emails/templates/emails/wrapped_email.html +++ b/emails/templates/emails/wrapped_email.html @@ -39,6 +39,9 @@

This message was forwarded from {{ display_email|safe }} by Firefox Relay. + {% if has_attachment %} +
Emails with a maximum size of 150KB have attachments support. To learn more check our FAQ page. + {% endif %}

diff --git a/emails/views.py b/emails/views.py index 6d433826be..5b7c71cd5c 100644 --- a/emails/views.py +++ b/emails/views.py @@ -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}