I've used this very simple mail form many times with no problem - but a recent switch to a dedicated server has had me changing the way I do things in php.
Here's what I'm working with:
<? import_request_variables("gP");
if($submit)
{
mail("myemail@mydomain.com", "$subject", "$email", "$comments");
echo "<br /><br /><br /><h1>Thanks for your question - we'll get back to you shortly</h1>";
} else { ?>
<br /><br /><br />
<form method="post" action="contact.php">
<INPUT TYPE="TEXT" NAME="email" size=30 value="Email"><br />
<INPUT TYPE="TEXT" NAME="subject" size=30 value="Subject"> <br />
<TEXTAREA NAME="comments" ROWS=10 COLS=29 >Comments</TEXTAREA> <br />
<input type="submit" name="submit" value="submit">
</form>
<? }?>
When I submit I'm getting my "Thanks for your question - we'll get back to your shortly" message but I wait around for a few minutes and the email never comes through.
**Of course I've changed the TO: email in my script.
1) Is there anything there that looks wrong?
2) If not, what should I look for in my php.ini to see if my php is setup properly to do this. As I said I've made a move to a dedicated server and my php config has changed from what I'm used-to on shared hosting.
Any help would be extremely appreciated.
Thanks