", $emailBody); // send the email mail($to, $emailSubject, $emailBodyHTML, implode("\r\n", $headers)); // redirect to the 'thank you' page header("Location: /preprod/thank-you/index.html"); } ?> Contact form handler