|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-05 11:22 UTC] edink@php.net
[2007-04-05 12:17 UTC] webmaster at wiedmann-online dot de
[2007-04-27 13:03 UTC] edink@php.net
[2007-04-29 15:14 UTC] webmaster at wiedmann-online dot de
[2007-11-19 14:05 UTC] jani@php.net
[2009-05-15 11:59 UTC] webmaster at wiedmann-online dot de
[2009-05-15 12:01 UTC] carsten_sttgt at gmx dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ If I have the sendmail binary in a path with a whitespace, PHP can't open/find this program, because the path is not quotet in the popen call (mail.c). On *nix this is not a problem, because on *nix you escape a space with a backslash (Program\ Files) and don't quote the hole path ("Program Files") like on Windows. And a backslash I can add myself in php.ini. BTW: A 8.3 name (PROGRA~1) will still work on Windows, if it's not disabled in the NTFS settings. Reproduce code: --------------- [php.ini] sendmail_path = "C:\Pogram Files\sendmail\sendmail.exe -t" <?php mail('test@example.com', 'Subject', 'Message'); ?> Expected result: ---------------- Mail is send without problems. Actual result: -------------- 'C:\Program' is not recognized as an internal or external command, operable program or batch file.