i want to send mail in particular format...i want to send shipping info and tracking number by mail.mail sent successfully but showing in some wiered format... below format i want to achieve ..
Dear xyz ,
Per your request, this email is to notify you that your items have been
shipped.
You can track the status of this order, and all of your orders, online
by visiting your account at http://www.uline.com/MyAccount/myUline.aspx
The following items were included in this shipment:
---------------------------------------------------------------------------
Qty UM Item# Description Price Shipped
---------------------------------------------------------------------------
1,000 M S-209 4.5X5.5 INV ENCLOSED P $0.023 1,000
---------------------------------------------------------------------------
This shipment was sent to:
xyz xxx
3372 KENSINGTON DR
AVON, OH 44011
Po#: xyz
Carrier: UPS Ground
Here are your tracking numbers:
1ZA6898Axxxxxxxxx
i have tried this.....................
$subject="computermall Shipping Confirmation - Order#: ".$_REQUEST['ordid']."";
$header="from:orders@computermall.co.in";
$content="<html><body>Dear ".$rw['firstname']." ".$rw['lastname']." , <br>
Per your request, this email is to notify you that your items have been
shipped <br><br>
Here is your tracking number : ".$_REQUEST['trackno']." <br> <br>
---------------------------------------------------------------------------<br>
Order#: ".$row3['order_id']." <br>
Order Date: ".$row3['order_date']." <br>
---------------------------------------------------------------------------<br>
Sold To: <br>
".$rw['firstname']." ".$rw['lastname']." <br>
".$rw['address']." <br>
".$rw['city']." <br>
".$rw['pincode']." <br> <br>
Ship To: <br>
".$rw['firstname']." ".$rw['lastname']." <br>
".$rw['address']." <br>
".$rw['city']." <br>
".$rw['pincode']." <br> <br>
--------------------------------------------------------------------------- <br>
Qty Product Price <br>
--------------------------------------------------------------------------- <br> ";
$s="select * from tbl_shoppingcart where cust_name='".$_REQUEST['username']."' and action='confirm' and order_id=".$_REQUEST['ordid']." order by id desc";
$q=mysql_query($s) or die($s);
$num=mysql_num_rows($q);
while($row=mysql_fetch_array($q)){
$_SESSION['gtotal']=$row['grand_total'];
echo"
".$row['qty']." ".$row['p_name']." Rs.".$row['price']." <br> <br>";
} echo"
---------------------------------------------------------------------------<br>
Sub-Total Rs.".$_SESSION['gtotal']." <br>
Shipping 00.00 <br>
Sales Tax $0.00 <br>
Total* Rs.".$_SESSION['gtotal']." <br>
</body></html>";
mail($email, $subject, $content, $header);
its sending mail in this kind of format.....
<html><body>Dear chirag ode , <br>
Per your request, this email is to notify you that your items have been
shipped <br><br>
Here is your tracking number : ab12345cd567 <br> <br>
---------------------------------------------------------------------------<br>
Order#: 33133271 <br>
Order Date: 15-07-13 <br>
---------------------------------------------------------------------------<br>
Sold To: <br>
chirag ode <br>
dhartipark society <br>
vadodara <br>
390002 <br> <br>
Ship To: <br>
chirag ode <br>
dhartipark society <br>
vadodara <br>
390002 <br> <br>
--------------------------------------------------------------------------- <br>
Qty Product Price <br>
--------------------------------------------------------------------------- <br>