alert('Please complete the form and try again.');window.location='index.html';"; exit; } // Set the recipient email address. // FIXME: Update this to your desired email address. $recipient = "Pappiranadholofficial@gmail.com"; // Set the email subject. $subject = "New Email For Booking For One Way"; // Build the email content. $email_content = "Name: $name\n"; $email_content .= "Email : $email\n"; $email_content .= "Mobile: $mobile\n"; $email_content .= "Location: $location\n"; $email_content .= "Subject: $subjectn\n"; $email_content .= "Message: $message\n"; // Build the email headers. $email_headers = "From: $name "; // Send the email. if (mail($recipient, $subject, $email_content, $email_headers)) { // Set a 200 (okay) response code. http_response_code(200); echo (""); } else { // Set a 500 (internal server error) response code. http_response_code(500); echo ""; } } ?>