diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-05-25 10:18:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-05-25 10:18:23 +0100 |
commit | f92fa912ef079d28c1392c10ede73c0b072573c1 (patch) | |
tree | 24328b22f6d3027d0d4e4eb2db734f622cca101a /perllib/FixMyStreet/Script/Reports.pm | |
parent | eb3cebfcda16bfda4cfe261836d756e4699041aa (diff) |
Use only one templating system for emails.
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.
Diffstat (limited to 'perllib/FixMyStreet/Script/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/Script/Reports.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm index 75111b852..278c58af1 100644 --- a/perllib/FixMyStreet/Script/Reports.pm +++ b/perllib/FixMyStreet/Script/Reports.pm @@ -289,19 +289,18 @@ sub _send_report_sent_email { my $nomail = shift; my $cobrand = shift; - my $template = FixMyStreet->get_email_template($row->cobrand, $row->lang, 'confirm_report_sent.txt'); - FixMyStreet::Email::send_cron( $row->result_source->schema, + 'confirm_report_sent.txt', + $h, { - _template_ => $template, - _parameters_ => $h, To => $row->user->email, From => [ FixMyStreet->config('CONTACT_EMAIL'), $cobrand->contact_name ], }, FixMyStreet->config('CONTACT_EMAIL'), $nomail, - $cobrand + $cobrand, + $row->lang, ); } |