<?php
error_reporting(0);
error_reporting(0); 
include_once("dbconnect.php");
 session_start();
 $to = $_POST['email'];
$subject = "Order Confirmation Mail";
$message ='<table height="25%" width="65%" align="" border="10" cellpadding="5" cellspacing="5" bgcolor="#FFCC99">
                      <tbody>
                         <tr>
                          <td width="38%" height="93" align="center" class="cntnt"><span style="font-size:20px">The order will be ready/delivered in : '.$_POST['delivered'].'</span></td>
                        </tr>
                           <tr>
                          <td width="38%" height="55" align="center" class="cntnt"><span style="font-size:20px">Utsave Yorkvilles Festival Of Indian Cuisine Phone: + 416.961.8349</span></td>
                        </tr>
</tbody>
                    </table>';
	//echo $message;exit;
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$abc="Utsave";
// More headers
$headers .= 'From: '.$abc.  "\r\n";
//$headers .= 'Cc: myboss@example.com' . "\r\n";

mail($to,$subject,$message,$headers);
header("location:orderdetails.php?cartid=".$_POST['cartid']."&userid=".$_POST['userid']."&suc=suc");
?>
<script > 
  window.location.replace("orderdetails.php?cartid=<?php echo $_POST['cartid']?>&userid=<?php echo $_POST['userid']?>&suc=suc");
</script>
