diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-01-09 22:55:08 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-01-13 16:28:50 +0000 |
commit | 676181084d88b0ec94d42521162b4571cb0c0552 (patch) | |
tree | 744979e676295aa7daf2de3aa03818b1f6419fb6 /bin/zurich-overdue-alert | |
parent | 4ae8d597a80d91084dcdcd999d480f41a57c70d1 (diff) |
Use same handling for cron and non-cron email.
This means that e.g. SMTP authentication is used when set up by all
emails, not just non-cron ones. Fixes #988.
Diffstat (limited to 'bin/zurich-overdue-alert')
-rwxr-xr-x | bin/zurich-overdue-alert | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/zurich-overdue-alert b/bin/zurich-overdue-alert index e7c23b493..c09aef1e2 100755 --- a/bin/zurich-overdue-alert +++ b/bin/zurich-overdue-alert @@ -62,16 +62,14 @@ sub send_alert { admin_url => $cobrand->admin_base_url, }; - my $env_to = [ $body_email ]; my $to = [ [ $body_email, $body->name ] ]; if ( $include_parent ) { my $parent = $body->parent; my $parent_email = $parent->endpoint; - push @$env_to, $parent_email; push @$to, [ $parent_email, $parent->name ]; } - my $result = FixMyStreet::App->send_email_cron( + FixMyStreet::App->send_email_cron( { _template_ => $template, _parameters_ => $h, @@ -79,7 +77,6 @@ sub send_alert { From => [ FixMyStreet->config('CONTACT_EMAIL'), FixMyStreet->config('CONTACT_NAME') ], }, FixMyStreet->config('CONTACT_EMAIL'), - $env_to, $nomail ); } |