mail function not working

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
eyriquewong
Forum Newbie
Posts: 2
Joined: Sun Sep 26, 2010 11:57 pm

mail function not working

Post by eyriquewong »

hi,

i'd tried to run this:

Code: Select all

mail($to, $subject, $message, $headers);
but in the linux shell, it shows this:
sh: /usr/sbin/sendmail: No such file or directory
when i tried this:
whereis sendmail
it shows:
sendmail: /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz
is this kinda path prob? how do i deal with this?

thanks ~
Post Reply