aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport
Commit message (Collapse)AuthorAgeLines
* [UK] Fix email logo display on submit email.Matthew Somerville2019-12-10-1/+4
| | | | | If e.g. a report was made on .com and sent to TfL, it would be sent with TfL colours but a (stretched) .com logo.
* Allow cobrand to provide own DO_NOT_REPLY_EMAIL valueDave Arter2019-12-09-1/+1
|
* [TfL] Remove Email::TfL send method as no longer neededDave Arter2019-12-09-11/+0
|
* [Bexley] Provide Confirm parameters required.Matthew Somerville2019-11-13-4/+4
|
* Store email addresses report sent to on the reportMatthew Somerville2019-11-10-0/+7
|
* Merge branch 'zurich-staging'Matthew Somerville2019-09-30-3/+10
|\
| * [Zurich] Do not override envelope sender.Matthew Somerville2019-09-30-13/+0
| |
| * [Zurich] Set envelope for external body emails.Matthew Somerville2019-09-30-3/+23
| |
* | [IsleOfWight] add Triage SendReport moduleStruan Donald2019-09-27-0/+20
|/ | | | sets the state of the report to `for_triage` upon sending
* [Hounslow] Send report to inbox after first Open311 send attemptDave Arter2019-09-16-1/+1
|
* [Hounslow] Send report to inbox before Open311 send, not afterDave Arter2019-09-13-1/+1
|
* Add Open311::always_upload_photos flag to send all photos, not just privateDave Arter2019-08-16-0/+1
| | | | This is intended to be used by Westminster, but not quite yet.
* better error if category for report does not existStruan Donald2019-06-20-19/+5
| | | | | | It is possible that the category of a report no longer exists and in that case the Open311 send process was falling over. This checks that we've found a contact and if not sets the error and skips the report.
* Allow file uploading when sending Open311 service requestsDave Arter2019-06-06-0/+1
| | | | | | | | | | | This adds a new upload_files flag (which cobrands can set in their open311_config method) to Open311 which means any general enquiry files are POSTed to the Open311 endpoint in a multipart/form-data request. Photos on hidden reports are also sent if this flag is set, because they wouldn't be accessible to the Open311 endpoint via media_url as the reports are non_public. This feature is not part of the Open311 specification.
* [UK] Update 2019 local government handling.Matthew Somerville2019-05-23-2/+2
|
* [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-0/+20
|
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-8/+0
|
* [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-0/+1
| | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* [UK] send reports on highways agency roads to highways agencyStruan Donald2018-11-19-17/+44
| | | | | | | Includes an option to send to the council instead for e.g. reports on underpasses or bridges. Fixes #736
* [Angus] Remove cobrand.Matthew Somerville2018-10-10-167/+0
|
* Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-1/+1
|
* Add Blackhole send methodDave Arter2018-09-24-0/+20
|
* [Buckinghamshire] Update flytipping handling.Matthew Somerville2018-08-07-1/+3
| | | | | | Allow flytipping reporting on cobrand and .com, with road reports going to Bucks Confirm and email, and non-road reports going to district and Bucks emails.
* Use body_handler hook finding cobrand in SendReport::Email.Matthew Somerville2018-06-19-0/+2
|
* [TfL] Add SendReport plugin to ignore contact selection.Matthew Somerville2018-06-14-0/+23
|
* Make sure closest address stringified in extra.Matthew Somerville2018-05-14-1/+1
| | | | | 22f0fed0b made the closest address an object, and objects can’t be directly stored in the extra column.
* [BANES] Add Email::BathNES send method with custom template for street light ↵Dave Arter2018-04-10-0/+16
| | | | reports
* send easting/northing over open311 if send_notpinpointed and no map/postcodeStruan Donald2018-03-21-1/+3
| | | | | | If the map was not clicked and we don't have a postcode we should still send the easting and northing extra attributes if send_notpinpointed is set.
* send multiple photos over open311Struan Donald2018-03-15-0/+1
| | | | | | | | Per cobrand configurable option to send multiple photos over open311 instead of just a single one. Does this by sending multiple media_url parameters in the POST body. The default remains to send the first photo associated with a report.
* [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-4/+4
| | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* Fix warning when sending reports from user with no emailDave Arter2018-02-09-1/+1
|
* Store all successful send methods.Matthew Somerville2017-12-13-2/+0
|
* In RSS, only escape the necessary five/ctrl chars.Matthew Somerville2017-10-02-1/+5
| | | | | | By default encode_entities uses named entities, which don't exist by default in XML. It seemed nicer to switch to only escaping the minimum rather than switching to numeric entities.
* Adapt things that assume email will be present.Matthew Somerville2017-09-30-2/+9
| | | | | | This includes stopping some emails being sent (moderation, alert, questionnaire), dealing with Open311/email report sending, and tokenised_url.
* Ensure easting/northing is sent over Open311 even if map isn’t usedDave Arter2017-09-26-1/+5
|
* Add inactive state to categories.Matthew Somerville2017-07-14-6/+4
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Stop using mySociety::Web and mySociety::Sundries.Matthew Somerville2017-07-06-4/+3
| | | | | Both uses can be covered by existing modules. This means we can drop FCGI also.
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-8/+1
|
* Use sender in From if From and To domains match.Matthew Somerville2017-03-14-1/+3
| | | | | | To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419
* Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-4/+1
|
* Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-70/+14
| | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-1/+1
|
* Add a 'closest_address' hidden Open311 attribute.Matthew Somerville2017-02-03-0/+2
| | | | This joins easting, northing and an external ID field.
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-1/+1
|
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-39/+28
|
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-0/+7
|
* Add HTML email templates.Matthew Somerville2016-08-01-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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-14/+5
| | | | | | | 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.
* Store Open311 error in report on failure.Matthew Somerville2016-04-27-3/+2
| | | | | | It will still output via cron on the first failure. However, reduce the verbosity of a couple of SendReport modules which are reporting failure every time.
* [UK] Remove West Berkshire temporary fix.Matthew Somerville2016-04-27-4/+0
|