I have a simple form script that's supposed to generate an email. It's been working just fine for about a year, but then I changed my hosting and now the script still redirects to the "thank you" page, but the email isn't generated. I don't think I've changed anything. Can y'all look over my script and see if there's anything wrong with it? Or is it the new hosting's fault?
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email_to, $email_subject, $email_message, $headers);
header( 'Location: http://amvleague.vitaminh.info/thankyou.html' ) ;
}
die();
?>