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:
$headers='From:Management<[EMAIL="info@3malas.com>'"]info@3malas.com>'[/EMAIL];

try this:

<?php
$subject = "HTML Test";
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
$header .= "From: CodeRewind <service@coderewind.com>\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="info@3malas.com>\n\r"]info@3malas.com>\n\r[/EMAIL]";
$Going="[EMAIL="info@3malas.com"]info@3malas.com[/EMAIL]"; 
$Subj="Hello";
$Msg="Bla bla bla bla..............";
mail($Going,$Subj,$Msg,$headers);

Peace,
It tried it and it worked but The Sender Name was:
[email]anymous@(MYCPNAME).com[/email]
However I want the (From) Shows: 3Malas Chat Room Management <info@3malas.com>
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 asdfa@asfa.com";

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.