aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Alerts.pm
Commit message (Collapse)AuthorAgeLines
* Enable HTML in update alert emails.Dave Arter2020-09-30-0/+1
|
* Allow cobrand to provide custom domain for VERP addressesDave Arter2020-07-02-1/+1
|
* Mark user as active when sent an email alert.Matthew Somerville2020-06-03-0/+4
|
* [TfL] Exclude TfL items from non-TfL email alerts.Matthew Somerville2019-12-09-1/+7
|
* Record first time fixed/closed update sent to reporter in email.Matthew Somerville2019-12-09-4/+13
|
* pass cobrand name to state display from alert scriptStruan Donald2019-11-26-1/+1
| | | | | This was passing the cobrand object so the checks in State::display that were relying on the moniker were not working.
* Update a number of packages.Matthew Somerville2019-05-13-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update: * Catalyst * Specify Catalyst::DispatchType::Regex explicitly * Remove Catalyst::Plugin::Unicode::Encoding * Catalyst::Plugin::SmartURI * Specify URI::SmartURI explicitly * Catalyst::Plugin::Static::Simple * CGI * Class::Load * DateTime * DateTime::TimeZone * DBD::Pg * DBIx::Class * DBIx::Class::EncodedColumn. * Email::Address. * Email::MIME * ExtUtils::MakeMaker * ExtUtils::ParseXS (for Params::Classify upgrade) * File::ChangeNotify * Image::Size * IO::Socket::SSL * local::lib * Moo * Moose (and some related others due to deprecations) * namespace::autoclean * Net::Server * Net::SSLeay * Number::Phone * Plack * Starman * Template * Test::PostgreSQL * Test::WWW::Mechanize::Catalyst * Text::CSV * YAML carton install was run on a wheezy box, the oldest that is supported, to make sure the required minimal vesions of core modules weren't removed from the snapshot. Cpanel::JSON::XS, Devel::GlobalDestruction::XS, and MooseX::NonMoose were then put back in the snapshot, in case another system needs them (e.g. system Perl on Mac looks for MooseX::NonMoose).
* Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-3/+3
|
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-1/+4
| | | | | | | | | | | Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption.
* Fix issue sending alerts around no-text update.Matthew Somerville2017-10-06-13/+18
| | | | | | | | | If there was a normal email alert, and then an alert for an update with no text (so no email should be sent), it would still try to send the blank email, and then die because no e.g. $data{cobrand} set. This moves the skip-blank-update check higher up, above any email sending code.
* generate update text in alerts if problem state has changedStruan Donald2017-10-05-0/+15
|
* do not send blank problem update alertsStruan Donald2017-10-05-0/+1
|
* Adapt things that assume email will be present.Matthew Somerville2017-09-30-8/+12
| | | | | | This includes stopping some emails being sent (moderation, alert, questionnaire), dealing with Open311/email report sending, and tokenised_url.
* Fix missing URLs in alert emailsDave Arter2017-08-22-1/+1
| | | | | | | | | If a staff user changed a problem’s state and an empty update was generated, it was possible for alert emails to be sent with missing URLs because the empty string in the update text was falsy and Alert.pm took the wrong path. This fixes the problem by changing the test to defined() and includes a regression test.
* Move FixMyStreet::DB to FixMyStreet::DB::Schema.Matthew Somerville2017-08-09-2/+2
| | | | Store a schema object on FixMyStreet::DB instead.
* Remove final use of old DBHandle.Matthew Somerville2017-06-20-5/+2
|
* Tidy up find_closest* functions.Matthew Somerville2017-05-02-3/+3
| | | | | Allow find_closest to be called multiple times with only one lookup, and to return just its data, not a compiled string.
* Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-5/+1
|
* Do not send alerts for hidden reports.Matthew Somerville2016-08-10-0/+2
| | | | Fixes #1461.
* Add HTML email templates.Matthew Somerville2016-08-01-28/+61
| | | | | | | | | | | | | | | | | | | | | | | | 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 only one templating system for emails.Matthew Somerville2016-05-25-4/+2
| | | | | | | 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.
* Fallback if request to Gaze fails.Matthew Somerville2016-05-18-3/+3
| | | | Fixes #1286.
* Better handle replies to bounce addresses.Matthew Somerville2016-02-23-1/+6
| | | | | | | | | | 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.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-0/+293
Maintain old location wrappers.