aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-25 17:30:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-12-02 17:41:21 +0000
commitbb1e7974955b450520489b93f8ddb6fedaf96008 (patch)
treeeb509af1f0dcc81089c9260304f26a067c717254 /perllib/FixMyStreet/SendReport
parent361f9e49c2e8c5aee1c4bdb9bd7897bba6f6f06b (diff)
Move EmailSend out of Catalyst for use elsewhere.
Diffstat (limited to 'perllib/FixMyStreet/SendReport')
-rw-r--r--perllib/FixMyStreet/SendReport/Email.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm
index bac408510..95c460006 100644
--- a/perllib/FixMyStreet/SendReport/Email.pm
+++ b/perllib/FixMyStreet/SendReport/Email.pm
@@ -105,7 +105,8 @@ sub send {
$params->{From} = [ mySociety::Config::get('CONTACT_EMAIL'), $params->{From}[1] ];
}
- my $result = $app->send_email_cron(
+ my $result = FixMyStreet::Email::send_cron(
+ $row->result_source->schema,
$params,
mySociety::Config::get('CONTACT_EMAIL'),
$nomail,