help with mail() function
| From: | Bill Beck | Date: | Fri, 27 Jul 2007 15:37:09 +0000 |
| Subject: | help with mail() function | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-18142@lists.php.net to get a copy of this message | ||
Hello all,
I've compiled PHP5 on an Ubuntu machine. Getting this error when trying to use mail(), and have looked for the obvious problems:
error message:
*Fatal error*: Call to undefined function mail()
After running ./configure (as root) it shows that php found sendmail, and my admin panel confirms it's running:
checking for sendmail... (cached) /usr/sbin/sendmail
So sendmail is there, and the php_config.h file indeed shows #define HAVE_SENDMAIL 1
but no mail function.
Any thoughts?
Thanks,
Bill B