diff options
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index 2eb6bc279..19c6405d2 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -89,6 +89,7 @@ sub send { } my ($verbose, $nomail) = CronFns::options(); + my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($row->cobrand)->new(); my $result = FixMyStreet::App->send_email_cron( { _template_ => $self->get_template( $row ), @@ -98,7 +99,8 @@ sub send { }, mySociety::Config::get('CONTACT_EMAIL'), \@recips, - $nomail + $nomail, + $cobrand ); if ( $result == mySociety::EmailUtil::EMAIL_SUCCESS ) { |