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);
?>

I will must try it... Thanks.

Let me know.

It did not work, Another question why should I write \n and \r?

What is the error?

\n is for New line

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);

try sending the mail to a different email address.

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?

Peace, No I wrote the same code which you gave me, I didn't change the variables,
But when I send the message it comes like these:

From: anonymous@hoster907.com
To: info@3malas.com
Subject: HTML Test
Message: Bla Bla Bla...


How ever I want the (From): comes like this: Managment of the chat room info@3malas.com.

Peace, No I wrote the same code which you gave me, I didn't change the variables,
But when I send the message it comes like these:

From: anonymous@hoster907.com
To: info@3malas.com
Subject: HTML Test
Message: Bla Bla Bla...


How ever I want the (From): comes like this: Managment of the chat room <info@3malas.com> How can I do it?

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.