Re: mail() Problem
| From: | dan | Date: | Tue, 10 May 2005 00:21:16 +0000 |
| Subject: | Re: mail() Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214802@lists.php.net to get a copy of this message | ||
Mary-Anne Nayler wrote:
Hi. I am very new to this group and this is my first request for help so please be patient. when I try to use the mail() function in a PHP based webpage I get the following error: Fatal error: Call to undefined function: mail() in <the path to my script> on line <line number> I have tried changing some mail config details in php.ini. For instance, the path to sendmail used to be: "/usr/lib" and I have changed it to: "/usr/lib/sendmail -t -i". The permissions on sendmail are 555, owner is root and group is other. I guess you could say I am well and truly clutching at straws now!! Has anyone else ever had this problem? If so how was it resolved? Mary-AnneMary - This error occours when PHP can't find sendmail at compile-time. Your best bet would be to install sendmail or a sendmail-compatible MTA, and then rebuild PHP. Postfix is my second love, so naturally I'd recommend it - www.postfix.org. Thanks -dant