diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-08 12:48:19 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-08 12:48:19 +0100 |
commit | 8a13627c2cb349a099e3fbfabbaa890805775e65 (patch) | |
tree | f21ec9c7182514cb18e822a58bd52a3c04ffe634 | |
parent | c4ed22f3d660e140b10a1993906b558a59e5df44 (diff) |
Log failure to send email.
-rw-r--r-- | perllib/FixMyStreet/App.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index ea7d43512..61c703468 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -338,7 +338,8 @@ sub send_email { $data->{_html_images_} = \@inline_images if @inline_images; my $email = mySociety::Locale::in_gb_locale { FixMyStreet::Email::construct_email($data) }; - $c->model('EmailSend')->send($email); + my $return = $c->model('EmailSend')->send($email); + $c->log->error("$return") if !$return; return $email; } |