No mail() function
| From: | Miles Thompson | Date: | Fri, 27 Apr 2007 18:32:55 +0000 |
| Subject: | No mail() function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-254001@lists.php.net to get a copy of this message | ||
Does anyone have any ideas?
PHP 5.2 was compiled from source, the mail path is set to /usr/sbin/postfix
in php.ini, and Apache has been restarted. The mail path shows up in
phpinfo().
A trivial PHP script, written to see if mail could be sent from PHP,
returns this error:
*Fatal error*: Call to undefined function mail() in *
/var/www/junk/testmail.php* on line *9
*The docs say that mail is a core function, like so:
"There is no installation needed to use these functions; they are partof the PHP core" It's a UBUNTU server, so when compiling I sudo'ed and configure / make / checkinstall (instead of make install) worked fine. However, in phpinfo() under the "standard" heading there is no :
Path to sendmail /usr/sbin/sendmail -t -ilike there is on our production server. Suggestions and advice will be welcomed. Regards - Miles Thompson