Page 1 of 1
Call to undefined function: mail()
Posted: Wed Nov 03, 2004 1:37 am
by velgar
I use suse 9.1 and apache2.0.49 php-4.3.4 and i use mail() function the php call me: Call to undefined function mail()! Where is the problem?
Posted: Wed Nov 03, 2004 7:58 pm
by markl999
When PHP was compiled it couldn't find a sendmail binary, so no mail().
You need to install sendmail/qmail/etc and recompile PHP.
Posted: Thu Nov 04, 2004 1:42 am
by velgar
Thanks markl999 but i use postfix as sendmail. Do i need to uninstall postfix and instal sendmail?
Posted: Thu Nov 04, 2004 7:39 am
by markl999
Nope, you just need a sendmail binary available, i.e qmail has it's own /usr/sbin/sendmail to replace the one that comes with sendmail .. i'm pretty sure most of them do, so it doesn't have to be sendmail, you just need any MTA that provides a sendmail 'binary' ... if that makes sense

I should have just said "Yes, postfix will do."
