please this email code is not going , can you please have a look, it part of a code (the code above and below is working)
$body = "<html><body><table border='1'>
<tr>
<th></th>
<th>Shop Name</th>
<th>Product Name</th>
<th>Size</th>
<th>Color Name</th>
<th>Quantity</th>
<th>weblink</th>
<th>info</th>
<th>Price</th>
<th>Cost</th>
</tr>";
$totalPrices = 0;
$rowNum = 1;
$pplresult = mysql_query("SELECT * FROM repplac WHERE Uname = '{$_SESSION['username']}'ORDER BY Sname ASC");
while($row = mysql_fetch_assoc($pplresult)){
$body .= "<tr>
<td>".$rowNum++."</td>
<td>" . $row['Sname'] ."</td>
<td>" . $row['Pname'] ."</td>
<td>" . $row['Psize'] ."</td>
<td>" . $row['Pcolour'] ."</td>
<td>" . $row['Pquantity'] ."</td>
<td>" . $row['Weblink'] ."</td>
<td>" . $row['comment'] ."</td>
<td>" . $row['Price'] ."</td>
<td>" . $row['Tprice'] ."</td>
</tr>";
$totalPrices += $row['Tprice'];
}
if(0.1*$totalPrices <= 50 )
{
$totalprice = (0.1*$totalPrices + $totalPrices);
}
else
{
$totalprice = 50 + $totalPrices;
}
$body .= "<tr>
<td colspan=8>Total :</td>
<td>" . $totalprice ."</td>
</tr>";
$body .="</table></body></html></br></br>";
$body .="$fullname</br>$houseno</br> $addressa</br>$addressb</br>$addressc</br>$county</br>$state</br>$country</br></br>";
//Send email
$Uname = "{$_SESSION['username']}";
$emails ="mgltd@me.com";
$to = $emails;
$subject = "$Uname ORDER LIST($orderno) FROM REACHEASY ";
$headers = "From: donotreply@reacheasy.co.uk\\r\
"
. 'MIME-Version: 1.0' . "\\r\
"
. 'Content-type: text/html; charset=iso-8859-1' . "\\r\
"
. 'Bcc:notification@reacheasy.co.uk' . "\\r\
";
mail($to,$subject,$body,$headers);