note 51047 deleted from ref.mail by nlopess
| From: | nlopess@php.net | Date: | Fri, 18 Mar 2005 19:58:32 +0000 |
| Subject: | note 51047 deleted from ref.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86650@lists.php.net to get a copy of this message | ||
Note Submitter: lcloss at gmail dot com
Reason: useless
----
I had this error:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom
"From:" header missing in c:\inetpub\wwwroot\site\sendemail.php on line 45
I checked out c:\php\php.ini, and the script. All was correct, BUT when I checked phpinfo()
settings, I saw that this script report php.ini path = C:\WINDOWS instead of c:\php (installation
path).
I don't have any php.ini at C:\WINDOWS so I discover a little trick when you manually install
php as isapi. You must add PHPRC variable in your Windows system variables and restart your
computer.
Check out at http://www.zend.com/manual/faq.installation.php#faq.installation.phprc
to find out how to make the php.ini file available to PHP on windows.