I am using simple mail() function to send mails, and everything works fine tile I supply a header info, as shown below:
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; carset=iso-8859-1;\r\n";
$headers.= "From: TESTSITE <".$mailfrom.">\r\n";
Also, on another note, my cpanel server doesn't show the msg log, so I can't exactly figure out why the mail failed. But for one thing, I am quite sure the problem is due to the inclusion of the header, any ideas what could be wrong and how to debug?