Hello.
I'm trying to send an html mail in php. The mail does get sent but the From header contains the name "Nobody" and email of nobody@server56.totalchoicehosting.com. I figured that I can overwrite these settings with the fourth parameter of the PHP built-in mail function but it looks like that isn't working. Even the MIME content type declaration of html is not working. In other words, the mail header parameter doesn't seem to be causing any effect on the mail being sent. I've tried separating the headers with \n, \r\n etc. but nothing seems to be working. The code is pasted below: Can anyone help?
$mailheaders = "To: $_POST[fname] <$_POST>\n" .
"From: CS <customerservice@deliveryoncall.com>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1\n\n";
mail($_POST, $subject, $message, $maiheaders);
Regards,
Asra