aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Email.pm
Commit message (Collapse)AuthorAgeLines
* [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
|
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-1/+1
|
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-1/+1
|
* 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-12/+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.
* Better handle replies to bounce addresses.Matthew Somerville2016-02-23-8/+7
| | | | | | | | | | 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.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-3/+3
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-1/+1
| | | | And create default cobrand class without all of Moose.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-4/+2
| | | | Command line scripts don't need a full blown app, just database.
* Move EmailSend out of Catalyst for use elsewhere.Matthew Somerville2015-12-02-1/+2
|
* Allow attachment of emails in email_sendHakim Cassimally2015-10-06-1/+6
| | | | Required by Zurich for mysociety/FixMyStreet-Commercial#675
* Test for DMARC when sending report email.Matthew Somerville2015-08-19-0/+7
|
* [fixmystreet.com] Remove Essex/Oxfordshire code.Matthew Somerville2015-07-22-27/+0
| | | | This is no longer used.
* [Oxfordshire] Update email template for cobrand.Matthew Somerville2015-01-21-1/+4
| | | | And update HTTPS link.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-17/+15
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Pass cobrand into send_email_cron when sending SendReport emailsSteven Day2014-12-09-1/+3
| | | | | | | | | | | | | | Without this, email sending within a cobrand will get the right main email template (submit.txt) for the email - because it uses the cobrand inside get_template - but it doesn't use the cobrand for things like the email signature, because you have to pass it into send_email_cron manually to make it cobrand-aware. This probably hasn't been noticed before because most cobrands are called Something FixMyStreet, but Collideoscope is different and hence it caused a problem there. Closes mysociety/FixMyStreet-Commercial#621.
* refactor repeat code into get_email_templateHakim Cassimally2014-08-14-6/+2
|
* Change default email indentation to none.Matthew Somerville2014-03-17-1/+0
| | | | | This is very old, no-one seems to want/need it any more, and more than one reuser does not want it. Fixes #715.
* Send staging reports to reporter, not contact address.Matthew Somerville2014-01-30-1/+1
| | | | Fixes #653.
* change email sender to handle multiple emails per contactStruan Donald2013-10-28-3/+13
| | | | | splits emails on comma WIP
* Allow email indent to be a cobrand parameter.Matthew Somerville2013-02-11-0/+1
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-16/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Split the 'send reports' bit of STAGING_SITE to its own config variable, so ↵Matthew Somerville2013-01-16-1/+1
| | | | | | | | you can have a dev site that sends reports like normal.
| * Zurich email alerts.Matthew Somerville2013-01-11-1/+6
| |
| * Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-2/+2
| | | | | | | | than one body.
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-2/+2
| |
| * Convert report sending code to use bodies rather than areas/councils.Matthew Somerville2012-12-15-13/+13
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-1/+1
| | | | | | | | Add foreign key constraint from contacts to body.
* | fix name of seesomething cobrand report to addressStruan Donald2013-01-09-1/+7
|/
* Email template language paths weren't being looked at for questionnaires or ↵Matthew Somerville2012-10-10-1/+3
| | | | reports (wasn't used, but didn't want to cause confusion at some future time). Prompted by #164.
* allow endpoints to be configured at a category levelStruan Donald2012-08-29-1/+2
| | | | | default cobrand now checks for endpoint configuration and only extra fallbacks are in UK cobrand
* print out message about reports that we tried to send to unconfirmed email ↵Struan Donald2012-07-24-4/+4
| | | | addresses
* Return correct failure code if no recipients.Matthew Somerville2012-07-23-2/+5
|
* Simplify SendReport code, moving some Email only bits to that module.Matthew Somerville2012-07-20-8/+18
|
* update send failed data if fail to send a reportStruan Donald2012-04-03-0/+8
| | | | add code in to save success and errors
* fix compile errorsStruan Donald2012-04-03-1/+0
|
* more tests for email sendingStruan Donald2012-02-27-2/+2
|
* put something in the base class and make things inherit from itStruan Donald2012-02-27-21/+0
|
* reduce duplicated codeStruan Donald2012-02-27-3/+2
|
* rough first draft of send-report refactor not. Work in progress at the momentStruan Donald2012-02-27-0/+126