Page 1 of 1

mail function not working

Posted: Mon Oct 25, 2010 4:55 am
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 ~