", $emailBody); // send the email mail($to, $emailSubject, $emailBodyHTML, implode("\r\n", $headers)); // if subscribe add to mailing list if(!empty($subscribe)) { // process // enovoi mail add to mailing list } // redirect to the 'thank you' page header("Location: /thank-you/index.html"); } ?>