aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Zurich.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Zurich.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 1bf9cb9a5..cc40cde29 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -994,10 +994,9 @@ sub _admin_send_email {
? [ $problem->user->email, $problem->name ]
: $problem->user->email;
- # Similar to what SendReport::Zurich does to find address to send to
- my $body = ( values %{$problem->bodies} )[0];
- my $sender = $body->endpoint || $c->cobrand->contact_email;
- my $sender_name = $c->cobrand->contact_name; # $body->name?
+ my $sender = FixMyStreet->config('DO_NOT_REPLY_EMAIL');
+ my $sender_name = $c->cobrand->contact_name;
+ utf8::decode($sender_name) unless utf8::is_utf8($sender_name);
$c->send_email( $template, {
to => [ $to ],