From 4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sat, 1 Jan 2005 21:44:15 +0000 Subject: Bug 59351 - move all calls to sendmail to a central place. Patch by mkanat; r=gerv,vladd; a=justdave. --- whine.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'whine.pl') diff --git a/whine.pl b/whine.pl index dc3f2302c..25a422a71 100755 --- a/whine.pl +++ b/whine.pl @@ -33,6 +33,7 @@ use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::Constants; use Bugzilla::Search; use Bugzilla::User; +use Bugzilla::BugMail; # create some handles that we'll need my $template = Bugzilla->template; @@ -378,12 +379,7 @@ sub mail { $template->process("whine/multipart-mime.txt.tmpl", $args, \$msg) or die($template->error()); - my $sendmailparam = - Param('sendmailnow') ? '' : "-ODeliveryMode=deferred"; - open SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i" - or die "Can't open sendmail"; - print SENDMAIL $msg; - close SENDMAIL; + Bugzilla::BugMail::MessageToMTA($msg); delete $args->{'boundary'}; delete $args->{'alternatives'}; -- cgit v1.2.3-24-g4f1b