Re: Using exim with mail()
| From: | Jason Wong | Date: | Fri, 05 Dec 2003 07:08:13 +0000 |
| Subject: | Re: Using exim with mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171952@lists.php.net to get a copy of this message | ||
On Friday 05 December 2003 13:17, King Pochacoo wrote:
> I set
> sendmail_path = /usr/sbin/exim -ti
> in php.ini
>
> But when I call to mail(), it displays
> Fatal error: Call to undefined function: mail() in
> /home/society/info/public_html/forum/include/userlogin.php on line 361
>
> What's wrong with my setting in php.ini ??? I am sure my code is working
> normally.
>
> Is anyone using exim v4 ? How do you set sendmail_path ???
Read: manual > Mail functions, in particular the section about
"sendmail_path".
Basically you need to have a "sendmail" binary that PHP can see. If
/usr/sbin/exim behaves similarly to the (real) sendmail binary then you could
either
a) rename it to /usr/sbin/sendmail or
b) ln -s /usr/sbin/exim /usr/sbin/sendmail
then recompile PHP.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Reformed, n.:
A synagogue that closes for the Jewish holidays.
*/