From 1820db45188fd62699223f63167c5f7250d1b7a6 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 15 Jul 2016 18:31:52 +0100 Subject: Add HTML email templates. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell () so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float. --- .../email/default/problem-confirm-not-sending.html | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 templates/email/default/problem-confirm-not-sending.html (limited to 'templates/email/default/problem-confirm-not-sending.html') diff --git a/templates/email/default/problem-confirm-not-sending.html b/templates/email/default/problem-confirm-not-sending.html new file mode 100644 index 000000000..6b60afbcf --- /dev/null +++ b/templates/email/default/problem-confirm-not-sending.html @@ -0,0 +1,36 @@ +[% + +email_summary = "You need to confirm your " _ site_name _ " report before it can be made public."; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + + + [% start_padded_box %] +

Please confirm your report

+

Please click on the link below to confirm that you want your report to appear +on [% site_name %], despite not being sent to the +council.

+

Your report will also appear on the [% site_name %] website.

+

+ Yes, publish my report +

+

If you no longer wish to publish this report, please take no further action.

+ [% end_padded_box %] + + + + [% start_padded_box %] + [% IF report.photo %] + + [% END %] +

[% report.title | html %]

+

[% report.detail | html %]

+ [% end_padded_box %] + + +[% INCLUDE '_email_bottom.html' %] -- cgit v1.2.3