aboutsummaryrefslogtreecommitdiffstats
path: root/bin/zurich
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 /bin/zurich
parent361f9e49c2e8c5aee1c4bdb9bd7897bba6f6f06b (diff)
Move EmailSend out of Catalyst for use elsewhere.
Diffstat (limited to 'bin/zurich')
-rwxr-xr-xbin/zurich/overdue-alert4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/zurich/overdue-alert b/bin/zurich/overdue-alert
index 700a642f4..03845dddb 100755
--- a/bin/zurich/overdue-alert
+++ b/bin/zurich/overdue-alert
@@ -20,6 +20,7 @@ BEGIN {
use DateTime;
use CronFns;
use FixMyStreet::App;
+use FixMyStreet::Email;
my ($verbose, $nomail) = CronFns::options();
@@ -76,7 +77,8 @@ sub send_alert {
push @$to, [ $parent_email, $parent->name ];
}
- FixMyStreet::App->send_email_cron(
+ FixMyStreet::Email::send_cron(
+ $schema,
{
_template_ => $template,
_parameters_ => $h,