diff options
author | Marius Halden <marius.h@lden.org> | 2017-05-28 21:31:42 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-05-28 21:31:42 +0200 |
commit | 987124b09a32248414faf4d0d6615d43b29ac6f6 (patch) | |
tree | a549db8af723c981d3b346e855f25d6fd5ff8aa7 /bin/handlemail | |
parent | dbf56159e44c1560a413022451bf1a1c4cb22a52 (diff) | |
parent | a085b63ce09f87e83b75cda9b9cd08aadfe75d61 (diff) |
Merge tag 'v2.0.4' into fiksgatami-dev
Diffstat (limited to 'bin/handlemail')
-rwxr-xr-x | bin/handlemail | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/handlemail b/bin/handlemail index cc671f786..e027b8f58 100755 --- a/bin/handlemail +++ b/bin/handlemail @@ -172,20 +172,19 @@ sub handle_non_bounce_to_null_address { To => $data{return_path}, _body_ => $template, }); - send_mail($mail->as_string, '<>', $data{return_path}); + send_mail($mail->as_string, $data{return_path}); } sub forward_on_to { my $recipient = shift; my $text = join("\n", @lines) . "\n"; - my $sender = $data{return_path} || '<>'; - send_mail($text, $sender, $recipient); + send_mail($text, $recipient); } sub send_mail { - my ($text, $sender, $recipient) = @_; + my ($text, $recipient) = @_; if (mySociety::EmailUtil::EMAIL_SUCCESS - != mySociety::EmailUtil::send_email($text, $sender, $recipient)) { + != mySociety::EmailUtil::send_email($text, '<>', $recipient)) { exit(75); } } |