summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl8
1 files changed, 2 insertions, 6 deletions
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'};