note 82325 deleted from ref.mail by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 20:02:21 +0000 |
| Subject: | note 82325 deleted from ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155315@lists.php.net to get a copy of this message | ||
Note Submitter: anschwartz[at sign]earthlink.net
----
Re. the subject of Sendmail on a Windows machine, the following suggestion was made:
<<For Windows users there is a fake sendmail option.
If you have a test server in use running Windows and some kind of WAMP combo (XXAMP, WAMP Server,
etc) then you'll notice that the PHP sendmail command (mail()) does not work. Windows simply
does not provide the sendmail statement ...
There is a simple trick to get this to work though;
1) Download sendmail.zip from http://glob.com.au/sendmail>>
This works great, but I found that I needed to change the permissions of at least the cmd.exe and
maybe also the sendmail.exe. Here's how to do it:
In the windows explorer, right click the name of the file. The cmd.exe is found in your system32
folder; the sendmail.exe is under your c:\wamp folder.
Click the security tab.
If Internet Guest Account is not already listed, then click Add , then Advanced, then Find Now.
Scroll down and select IUSR_machinename (where machinename is the name of your computer)
Click OK twice and return to the security tab.
Select your Internet Guest Account and then click the box under Allow for Read and Execute.
Click OK.
I found that it was not sufficient to do this for just the sendmail.exe, but I also had to do it for
the cmd.exe. (Maybe I did not need to do it for the sendmail.exe, but I did not go back and clear
the setting. Since I had my mail working, I was happy to move on.)
This plan may leave you vulnerable to attack, however, since now you have allowed a PHP job to run
applications on your server. Be careful out there.