summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-13 23:56:19 +0200
committerlpsolit%gmail.com <>2005-08-13 23:56:19 +0200
commit0b42b63e6eb6e2c91a048ff073574048940215f4 (patch)
treed0c4b4c559420d6ed01947080ebb268f03b8620f /Bugzilla/BugMail.pm
parentef9cdafcfa56f3f002fc15416641861b9e9e794d (diff)
downloadbugzilla-0b42b63e6eb6e2c91a048ff073574048940215f4.tar.gz
bugzilla-0b42b63e6eb6e2c91a048ff073574048940215f4.tar.xz
Bug 302418: re-enable sendmail support for Windows - Patch by byron jones (glob) <bugzilla@glob.com.au> r=wurblzap a=justdave
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index e51f0c83b..260cb0554 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -615,6 +615,14 @@ sub MessageToMTA {
my ($msg) = (@_);
return if (Param('mail_delivery_method') eq "none");
+ if (Param("mail_delivery_method") eq "sendmail" && $^O =~ /MSWin32/i) {
+ open(SENDMAIL, '|' . SENDMAIL_EXE . ' -t -i') ||
+ die "Failed to execute " . SENDMAIL_EXE . ": $!\n";
+ print SENDMAIL $msg;
+ close SENDMAIL;
+ return;
+ }
+
my @args;
if (Param("mail_delivery_method") eq "sendmail" && !Param("sendmailnow")) {
push @args, "-ODeliveryMode=deferred";