thanks jgeoff. I found it. It was wrong. I replaced it but it is still not working. The php test in the Control panel said the send mail path is /usr/sbin/sendmail -t -i now I used just /usr/sbin/sendmail. Should I add the -t -i ?