note 51047 added to ref.mail

From: Date: Fri, 18 Mar 2005 00:13:48 +0000
Subject: note 51047 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-86606@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51047 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51047&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51047&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51047&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51047&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51047&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51047&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86606) next »