I set up my form and thank you page, and they both seem to be working fine, however I am not getting an email when I test the form...here is my php code:
<?PHP
$mailto = "amnels02@smumn.edu";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Questionaire Information";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
I posted that code right off the blue voda website, and just entered my email I wanted it sent to with a subject as well. The thank you page comes up when I hit the submit button, but no email...Help!
<?PHP
$mailto = "amnels02@smumn.edu";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Questionaire Information";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
I posted that code right off the blue voda website, and just entered my email I wanted it sent to with a subject as well. The thank you page comes up when I hit the submit button, but no email...Help!
Comment