#42164 [Fbk->Csd]: Internal Sendmail Support is ALWAYS disabled

From: Date: Thu, 02 Aug 2007 02:21:33 +0000
Subject: #42164 [Fbk->Csd]: Internal Sendmail Support is ALWAYS disabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115663@lists.php.net to get a copy of this message
ID: 42164 User updated by: Brian dot White at foxfire74 dot com Reported By: Brian dot White at foxfire74 dot com -Status: Feedback +Status: Closed Bug Type: Mail related Operating System: Win32 PHP Version: 5CVS-2007-08-01 (snap) Assigned To: johannes New Comment: This seemed to fix the problem. Thanks. Previous Comments: ------------------------------------------------------------------------ [2007-08-01 12:50:10] johannes@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2007-08-01 12:31:47] johannes@php.net I'll fix that in a second. Thanks for the hint ------------------------------------------------------------------------ [2007-08-01 10:57:16] Brian dot White at foxfire74 dot com Description: ------------ In the latest snapshot, /main/main.c (line 234) defines a sendmail_path of "/usr/sbin/sendmail -t -i" even if compiling for Windows. As a result, Internal Sendmail Support for Windows is ALWAYS disabled since /ext/standard/mail.c (line 204) uses this variable to determine whether to use the internal SMTP server or an external sendmail program. Since a non-null default value exists, and is not possible to set sendmail_path to NULL (as opposed to the empty string) via php.ini mail always tries to use sendmail which results in a "The system cannot find the path specified." error. Main.c needs to check PHP_WIN32 and set the default sendmail_path to NULL when building for Windows. Reproduce code: --------------- <?php mail('me@mydomain.com', 'Test', 'Test Message'); ?> [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = Admin@mydomain.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = Expected result: ---------------- Mail should be sent. Actual result: -------------- The system cannot find the path specified. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42164&edit=1

« previous php.bugs (#115663) next »