Hi
I have a website that has stopped sending all emails it is just sending customer emails it should send an email to restaurant. below is the script is there something missing. any help would be great.
"; } if ($order['paymenttype']=="PayFast") { $msgpaypal="IMPORTANT NOTE : Please check your PayFast email for payment status!
"; } if ($order['paymenttype']=="Google Checkout") { $msgpaypal="IMPORTANT NOTE : Please check your google merchant account for payment status!
"; } while ($row = mysql_fetch_array($order_detail_results)) { $order_details .= "- ". $row['qty'] ." x ". $row['name'] . ' ['. setPrice($row['price']) . "]
"; $order_details .= $row['optionals']; $total_amount += $row['subtotal']; } //email to restaurant if (SITE_EMAIL) { $sender=SITE_EMAIL; $to = getVal("rests","email",$order['resid']); $reply=SITE_EMAIL; $subject="New Order"; $msg="
Hello, You recieved a new order. Order ID : #".$res_id." ----------------------------------------------------- Order Type : ".$order['order_type']." ----------------------------------------------------- Order Details : ".$order_details; if ($order['order_note']) { $msg .= "----------------------------------------------------- Comments/Requirements : " . nl2br($order['order_note']) . ' '; } $msg .= "----------------------------------------------------- Contact Name : ".$order['name']." ----------------------------------------------------- Contact Phone : ".$order['phone']." ----------------------------------------------------- GSM : ".$order['mobilphone']." ----------------------------------------------------- "; if ($need_address==1) { $msg.="Delivery Address : ".nl2br($order['address'])." ". $order['postcode'] . " ----------------------------------------------------- "; } $msg.="Payment Type : ".$order['paymenttype']." ".$msgpaypal." ----------------------------------------------------- Order total : ".setPrice($total_amount)." For details please goto your admin order page. Regards |
".$GLOBALS['hello'].", ".$GLOBALS['email_your_order_details']." ".$GLOBALS['email_order_id']." : #".$res_id." -------------------------------------------------------------------------- ".$GLOBALS['order_type']." : ".$order['order_type']." -------------------------------------------------------------------------- ".$GLOBALS['email_order_details']." : ".$order_details; if ($order['order_note']) { $msg_custemer .= "-------------------------------------------------------------------------- Comments/Requirements : " . nl2br($order['order_note']) . ' '; } $msg_custemer .= "-------------------------------------------------------------------------- ".$GLOBALS['email_contact_phone']." : ".$order['phone']." -------------------------------------------------------------------------- ".$GLOBALS['email_mobilphone']." : ".$order['mobilphone']." -------------------------------------------------------------------------- "; if ($need_address==1) { $msg_custemer.="".$GLOBALS['email_delivery_address']." : " .nl2br($order['address'])." ". $order['postcode'] . " -------------------------------------------------------------------------- "; } $msg_custemer.="".$GLOBALS['email_payment_type']." : ".$order['paymenttype']." -------------------------------------------------------------------------- ".$GLOBALS['email_order_total']." : ".setPrice($total_amount)." ".$GLOBALS['email_best_regards']." ".SITEURL." |