I think, the fourth is a header, and maybe you stated it wrong. Try to send without headers:
mail("somebody@example.com","My subject",My Bodytext);
And post here the result
kvdd
Junior Poster in Training
55 posts since Jun 2008
Reputation Points: 17
Solved Threads: 2
Your mail function is perfectly fine. Does it give you any error other than "Failure" ? Umm..have you disabled error reporting ? Have you set sendmail path in php.ini ? usually,
/usr/sbin/sendmail
is the path for sendmail.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356