i am trying to sending a mail from my page mail send ok and i receive the mail but the html tag not work in it and simple written in the file. i.e. the mail i receive
These are budget send from the Client Ali Raza
<B>TYPE---------------ID---------------ItemDescription---------------qty</B><BR>Ahi----------H 0000----------SASHIMI AHI #1----------5<BR>Ahi----------H 0120----------ALBACORE----------6<BR>Ahi----------H 0065----------AHI XGF MEDIUM----------7<BR>Ahi----------H 0085----------SASHIMI AHI #2+----------8<BR>Ahi----------H 0060----------MEDIUM AHI #2----------9<BR>
the script i am using...
<?
$from="";
$headers="";
$message="";
$email="qadeer@mydomain.com";
$from="qadeer_ahmad@mydomain.com";
$headers = "From: " . $from . "\n" . "Return-Path: " . $from . "\n" . "Reply-To: " . $from . "\n";
$message="These are budget send from the Client" . $_SESSION["name"].
"\n URL :" .$formail;
mail($email,"Submit Budgets",$message,$headers);
?>
since $formail contain the data which above written which i get from a for loop and concetinate it in $formail... the method i use is this ...
$formail="";
$formail="<B>TYPE---------------ID---------------ItemDescription---------------qty</B><BR>";
for ($i=0; $i<count($ID); $i++){
if ($qty[$i] != 0 or $qty[$i] != NULL or $qty[$i] = "") {
//print $ID[$i]. "<B>ID</B><br>";
//print $type[$i]. "<B>type</B><br>";
//print $ItemDescription[$i]. "<B>ItemDescription</B><br>";
//print $qty[$i]. "<B>qty</B><br>";
$formail .= $type[$i] . "----------" . $ID[$i] . "----------" . $ItemDescription[$i] . "----------" . $qty[$i] . "<BR>";
}
}
so i need these value shown clearly for this i have to use html table but it only <br> is not working here.
Please help