summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
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 /checksetup.pl
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 'checksetup.pl')
-rwxr-xr-xchecksetup.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 8364a54a8..6069de0c9 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -1182,9 +1182,12 @@ if (@oldparams) {
}
# Set mail_delivery_method to SMTP and prompt for SMTP server
-# if running on Windows and set to sendmail (Mail::Mailer doesn't
-# support sendmail on Windows)
-if ($^O =~ /MSWin32/i && Param('mail_delivery_method') eq 'sendmail') {
+# if running on Windows and no third party sendmail wrapper
+# is available
+if ($^O =~ /MSWin32/i
+ && Param('mail_delivery_method') eq 'sendmail'
+ && !-e SENDMAIL_EXE)
+{
print "\nBugzilla requires an SMTP server to function on Windows.\n" .
"Please enter your SMTP server's hostname: ";
my $smtp = $answer{'SMTP_SERVER'}