summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2005-01-01 21:44:15 +0000
committergerv%gerv.net <>2005-01-01 21:44:15 +0000
commit4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077 (patch)
tree7995ebb2391debcd774e93aab16411e04df8e28d /importxml.pl
parentBug 163007 - remove accesskeys which conflict with browser accesskeys. Patch ... (diff)
downloadbugzilla-4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077.tar.gz
bugzilla-4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077.tar.bz2
bugzilla-4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077.zip
Bug 59351 - move all calls to sendmail to a central place. Patch by mkanat; r=gerv,vladd; a=justdave.
Diffstat (limited to 'importxml.pl')
-rwxr-xr-ximportxml.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/importxml.pl b/importxml.pl
index f23387176..277681a35 100755
--- a/importxml.pl
+++ b/importxml.pl
@@ -61,6 +61,7 @@ use lib ($::path);
use Bugzilla;
use Bugzilla::Config qw(:DEFAULT $datadir);
+use Bugzilla::BugMail;
use XML::Parser;
use Data::Dumper;
@@ -113,11 +114,8 @@ sub MailMessage {
$header.= "From: Bugzilla <$from>\n";
$header.= "Subject: $subject\n\n";
- open(SENDMAIL,
- "|/usr/lib/sendmail -ODeliveryMode=background -t -i") ||
- die "Can't open sendmail";
- print SENDMAIL $header . $message . "\n";
- close SENDMAIL;
+ my $sendmessage = $header . $message . "\n";
+ Bugzilla::BugMail::MessageToMTA($sendmessage);
Log($subject . " sent to: $to");
}