ok
Direktori : /home/importfo/public_html/inddigmedia.in/inquiry/ |
Current File : /home/importfo/public_html/inddigmedia.in/inquiry/process_form.php |
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { // Collect form data $name = $_POST['name']; $email = $_POST['email']; $service = $_POST['service']; $phone = $_POST['phone']; $message = $_POST['message']; // Prepare the email content $to = "development@inddigmedia.com"; // The recipient email address $subject = "New Form Submission from Website"; $body = "You have received a new message from the website contact form:\n\n"; $body .= "Name: $name\n"; $body .= "Email: $email\n"; $body .= "Service Type: $service\n"; $body .= "Phone: $phone\n"; $body .= "Message: $message\n"; $headers = "From: $email"; // Send the email if (mail($to, $subject, $body, $headers)) { echo "Thank you! Your message has been sent successfully."; } else { echo "Oops! Something went wrong, please try again later."; } } ?>