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. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php