$host = $_SERVER['HTTP_HOST']; $host_upper = strtoupper($host); $to = 'rudolph@mediteksystems.co.za'; if($_POST['send'] == 'Place Order'){ $name = mb_convert_case($_POST['name'], MB_CASE_TITLE, "UTF-8"); $message = "Would like to place an order for some AquaBlu lights.\n Qty: $_POST[qty] \n Further instructions:\n $_POST[instr]\n\n Please contact me on, $_POST[tel], to confirm the order and arrange for payment. Thank You $name ______________________________________________________ ***THIS EMAIL WAS GENERATED VIA $host_upper.**** "; mail($to, "Order Request", $message, "From: $_POST[email]\r\n" . "X-Mailer: PHP/" . phpversion()); $msg = "Your order has been submitted. You will be contacted shortly."; header("refresh:3; url=$_SERVER[PHP_SELF]"); } ?>