Fatal error: Call to undefined function: mail()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sametch
Forum Newbie
Posts: 9
Joined: Mon Dec 20, 2004 4:53 am

Fatal error: Call to undefined function: mail()

Post by sametch »

I have a form processing script I have been using happily for nearly 3 years.

Last week I changed my server and now when I try to send the form I get the error above.

Does anyone know why I could now be getting this error?

:?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

It means PHP didn't find a sendmail binary when it was compiled.
Something like /usr/sbin/sendmail needs to exists at compilation. To fix it you'll need to install sendmail or qmail etc and recompile PHP.
Post Reply