Peace, I made a mail form and I want to enable The HTML in the Mail Message, How can I do it?... I wrote in the headers:

try this:

$subject = "HTML Test";
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
$header .= "From: CodeRewind <>\r\n";
$to = "";
$body = "";
$body = $body.'<b>Test HTML Mail</b>';

mail($to, $subject, $body, $header);

In fact there is no error, It goes well but the Email doesn't send.
This is the Code:

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=windows-1256\n";
$headers .="From:3Malas Chat Managment<[EMAIL=">\n\r"]>\n\r[/EMAIL]";
$Msg="Bla bla bla bla..............";

It tried it and it worked but The Sender Name was:
However I want the (From) Shows: 3Malas Chat Room Management <>
How can I do it?

So you replaced both the variable with [EMAIL="anymous@(MYCPNAME).com"]anymous@(MYCPNAME).com[/EMAIL] . The header and the going?

in the $header,make sure you have a space after From:

$headers="From:  Mycompany";

in the $header,make sure you have a space after From:

$headers="From: Mycompany asdfa

I did it... It works thanks, But Can I write the From Form in other language?

This article has been dead for over six months. Start a new discussion instead.