When my form entries are sent to my e-mail, they send as: "Mail Delivery failed: returning message to sender"
Here's the code on my thank you page, any ideas?
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "raidecom@raiderslive.com";
$mailsubj = "Form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>
Here's the code on my thank you page, any ideas?
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "raidecom@raiderslive.com";
$mailsubj = "Form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>
Comment