From:             Brian dot White at foxfire74 dot com
Operating system: Win32
PHP version:      5CVS-2007-08-01 (snap)
PHP Bug Type:     Mail related
Bug description:  Internal Sendmail Support is ALWAYS disabled

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('[EMAIL PROTECTED]', 'Test', 'Test Message');
?>

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

; 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 bug report at http://bugs.php.net/?id=42164&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42164&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42164&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42164&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42164&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42164&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42164&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42164&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42164&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42164&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42164&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42164&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42164&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42164&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42164&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42164&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42164&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42164&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42164&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42164&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42164&r=mysqlcfg

Reply via email to