Thank You for Your Interest!


// Sending email to recipients
mail($recipient, $subject, $email_content, $headers);

// Send thank you email to the submitter
$thank_you_subject = “Thank you for contacting us”;
$thank_you_message = “Hello $name,\n\nThank you for reaching out. We have received your message and will get back to you soon.\n\nBest Regards,\nThe Team”;
$thank_you_headers = “From:”;
mail($email, $thank_you_subject, $thank_you_message, $thank_you_headers);

// Redirect to a thank_you.html page or display a success message
echo “Thank you for your message. We will get back to you soon.”;
// Or you can use header(“Location: thank_you.html”);