title: PHP sendmail_path does not work
body: <p>I have a Windows 2003 server with PHP 5.24 installed on it.  </p>
  
  <p>I have read several posts (including the PHP manual page) on the Internet that say that sendmail_path in php.ini can be set to use a program such as Fake Sendmail which has the ability to push the mail file to my MDaemon pickup directory.  I have downloaded that program and attempted to use it.</p>
  
  <p>The problem is that sendmail.exe never gets executed.</p>
  
  <pre><code>sendmail_path = c:\SendMail\sendmail.exe
  </code></pre>
  
  <p>To verify it, I setup a simple batch file that writes to test.log when executed and changed the sendmail_path to point to the batch file.  I verified the batch file does indeed create my test file when run from the command line, but when I try to send mail, the file does not get created.</p>
  
  <pre><code>sendmail_path = c:\SendMail\test.bat
  </code></pre>
  
  <p>The batch file never gets called.</p>
  
  <p>I have tried a number of different things such as creating sendmail.exe in a path of /usr/lib/sendmail in both the c: root as well as the PHP programs folder but cannot seem to force PHP to use my file.</p>
  
  <p>I have also tried putting the path name in single and double quotes, but nothing works.</p>
  
  <p>In my PHP mail test I get get a fail msg and my PHP logfile shows the mail attempt to be delivered, so I know the mail process is being called.</p>
  
  <p>Looking for some suggestions as to what to try next.</p>
  
  <p>Gave up on trying to redirect PHP mail and just configured my servers SMTP settings to accept it.  Although I had wanted to have my MDaemon mail server handle the workload, this method will suffice for the limited use it will get.</p>