aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View/Email.pm
Commit message (Collapse)AuthorAgeLines
* Use shared Template base for all templates.Matthew Somerville2016-09-20-25/+4
| | | | | | Reduce some duplicated code, and as a side effect gives HTML emails our internal html_para filter, allowing single line returns in contact form submissions.
* Add HTML email templates.Matthew Somerville2016-08-01-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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: * <th> 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 (<th>) 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.
* use .txt suffix on email templatesEdmund von der Burg2011-03-23-1/+1
|
* Check that UTF8 in emails worksEdmund von der Burg2011-03-03-0/+1
|
* Simple email sendingEdmund von der Burg2011-03-02-0/+43