summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Flag.pm
diff options
context:
space:
mode:
authorgerv%gerv.net <>2005-01-01 22:44:15 +0100
committergerv%gerv.net <>2005-01-01 22:44:15 +0100
commit4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077 (patch)
tree7995ebb2391debcd774e93aab16411e04df8e28d /Bugzilla/Flag.pm
parentb9cfd23ffdca5cf3efc90f19471c553085f4c913 (diff)
downloadbugzilla-4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077.tar.gz
bugzilla-4e2bfc82a0a1d70e3e0e79d27b9bcee8dfc25077.tar.xz
Bug 59351 - move all calls to sendmail to a central place. Patch by mkanat; r=gerv,vladd; a=justdave.
Diffstat (limited to 'Bugzilla/Flag.pm')
-rw-r--r--Bugzilla/Flag.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 1ee6ba71c..8fa1e9457 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -36,6 +36,7 @@ use Bugzilla::Config;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Attachment;
+use Bugzilla::BugMail;
use constant TABLES_ALREADY_LOCKED => 1;
@@ -637,12 +638,8 @@ sub notify {
Bugzilla->cgi->header();
ThrowTemplateError($::template->error());
}
-
- my $delivery_mode = Param("sendmailnow") ? "" : "-ODeliveryMode=deferred";
- open(SENDMAIL, "|/usr/lib/sendmail $delivery_mode -t -i")
- || die "Can't open sendmail";
- print SENDMAIL $message;
- close(SENDMAIL);
+
+ Bugzilla::BugMail::MessageToMTA($message);
}
################################################################################