From 0b42b63e6eb6e2c91a048ff073574048940215f4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 13 Aug 2005 21:56:19 +0000 Subject: Bug 302418: re-enable sendmail support for Windows - Patch by byron jones (glob) r=wurblzap a=justdave --- checksetup.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'checksetup.pl') 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'} -- cgit v1.2.3-24-g4f1b