ID: 43327 Updated by: [EMAIL PROTECTED] Reported By: carsten_sttgt at gmx dot de -Status: Open +Status: Feedback Bug Type: Mail related Operating System: Windows_NT PHP Version: 5.2.5 New Comment:
Are you sure the path is actually set? Try this: php -d sendmail_path=/foo/bar -r 'var_dump(ini_get("sendmail_path"));' Previous Comments: ------------------------------------------------------------------------ [2007-11-19 01:40:08] carsten_sttgt at gmx dot de Description: ------------ Hello, on Windows, mail() allways returns true, regardless if sendmail_path is wrong, or sendmail returns an error code. Regards, Carsten Reproduce code: --------------- <?php error_reporting(E_ALL); $return = mail('[EMAIL PROTECTED]', 'Test', 'Test'); var_dump($return); ?> Expected result: ---------------- Like on *nix: | % ./php -d sendmail_path=/foo/bar test.php | /foo/bar: not found | bool(false) | % Actual result: -------------- On Windows: | D:\PHP>php -d sendmail_path=/foo/bar test.php | bool(true) | | D:\PHP> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43327&edit=1