note 14027 added to function.mail.php
| From: | nitro at wi dot rr dot com | Date: | Fri, 13 Jul 2001 20:44:42 +0000 |
| Subject: | note 14027 added to function.mail.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15349@lists.php.net to get a copy of this message | ||
When I rebuilt my server I installed apache/php4 before I installed a sendmail. Later I installed
sendmail. After completing the rebuild I got an error on one of my scripts that worked fine before.
The error was:
Warning: mail() is not supported in this PHP build in testmail.php on line 1
Turns out, when you run configure it checks to see if sendmail exists. If it doesn't at that
time you get the above error, otherwise it will work fine. If I remember correctly it looks for
/usr/sbin/sendmail. I use qmail and by placing a symbolic link, PHP4 recompiled fine, with mail
support.
http://www.php.net/manual/en/function.mail.php