aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Email.pm
Commit message (Collapse)AuthorAgeLines
* Stop using Text::Wrap to wrap email bodies.Matthew Somerville2016-06-07-8/+0
| | | | | | | | | | | If we don't do this, the default quoted-printable encoding will make sure the lines are physically wrapped anyway. format=flowed could be an alternative, but I think "=" acting as a quasi-hyphen is somewhat nicer than every line ending with "=20". A better solution could be quoted-printable doing soft wrapping only at word breaks, making each line be readable though end with a " =", but that didn't seem worth the effort involved.
* Use only one templating system for emails.Matthew Somerville2016-05-25-48/+63
| | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-42/+150
|
* Better handle replies to bounce addresses.Matthew Somerville2016-02-23-5/+30
| | | | | | | | | | Auto unsubscribe alert bounces, forward on report bounces and alert replies to support, and send through to report creator non-bounce replies to their report (for systems that ignore both the From and Reply-To headers). Also forward any totally unparsed bounce to support to possibly then adjust this bounce handling.
* Pass in EmailSend arguments as a hashref.Matthew Somerville2015-12-02-1/+1
| | | | | A fix to bb1e797; when started via a Catalyst model, e.g. send_email in FixMyStreet::App, an empty hashref is passed in.
* Move EmailSend out of Catalyst for use elsewhere.Matthew Somerville2015-12-02-0/+124
|
* Test for DMARC when sending report email.Matthew Somerville2015-08-19-0/+12