diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-03-25 21:30:44 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-03-30 17:24:27 +0100 |
commit | 32427b2032b12a7195249a2041e7aaa420b06e6a (patch) | |
tree | 440bf6e61970eb18376ba6a1a58ba232da50e234 /bin | |
parent | d80037c4c38154e2b9c892653e06527d0b718292 (diff) |
Refactor email handling to use Email::MIME alone.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/handlemail | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/handlemail b/bin/handlemail index e91a8a3a0..55a053963 100755 --- a/bin/handlemail +++ b/bin/handlemail @@ -22,7 +22,6 @@ BEGIN { use FixMyStreet; use FixMyStreet::DB; use FixMyStreet::Email; -use mySociety::Email; use mySociety::EmailUtil; use mySociety::HandleMail; use mySociety::SystemMisc qw(print_log); @@ -168,14 +167,13 @@ sub handle_non_bounce_to_null_address { $fp->close; # We generate this as a bounce. - my $mail = mySociety::Email::construct_email({ + my $mail = FixMyStreet::Email::construct_email({ From => [ FixMyStreet->config('CONTACT_EMAIL'), 'FixMyStreet' ], To => $data{return_path}, _template_ => $template, _parameters_ => { }, - _line_indent => '', }); - send_mail($mail, '<>', $data{return_path}); + send_mail($mail->as_string, '<>', $data{return_path}); } sub forward_on_to { |