View Full Version : Forms work but email doesn't send

Kevin Dwyer
05-15-2007, 09:06 AM
Hello anyone...
I have set a contact form on my committee page. Everything seems to work fine but the email doesn't come to my test email address. I have set up my own hotmail address just as a test. My email is dwyer.1961********.com. This is the script that I added to the beginning of a body on my thank you page. Any help with this would be much appreciated. Thank You in advance. Do I have to do anything with the brgc.biz email ?

www.brgc.biz (http://www.brgc.biz)

$mailto = "dwyer.1961********.com";
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = $mailto;
$mailsubj = "Contact Please";
$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);

05-15-2007, 10:16 AM
Your script seems correct. Try changing your email address to something else, than dwyer.1961@...... and test it. Also check your spam/junk folder. Hotmail in many cases blocks emails.

Kevin Dwyer
05-17-2007, 08:21 AM
Thanks again Naval...
It sends to other email with no problems