0) { $input_name =$_POST["name"]; $input_email = $_POST["email"]; $input_phone = $_POST["phone"]; $input_test = $_POST["test"]; $input_date = $_POST["date"]; $input_time = $_POST["time"]; $textarea_message =$_POST["address"]; $emailList="leads@clientsnow.co.in"; $headers .= "Bcc: ".$emailList."\r\n"; $body = " Hi Patho World , You have one Appointment From, Name = ".$input_name." Email = ".$input_email." Phone = ".$input_phone." test = ".$input_test." date = ".$input_date." time = ".$input_time." Address = ".nl2br($textarea_message)." "; if(mail("report@pathoworld.in","Inquiry", $body,$headers)) { header("Location: thankyou.php"); } else { header("Location: contact.php"); } } else header("Location: index.php"); ?>