View Full Version : email rafter submitting form

09-06-2007, 04:44 AM
Hi all,
Just setting up my first website
when I hit submit it goes to my thankyou page, but I recieve no emails at all?

Have reread everything and cannot find anything not set up correctly?
Im not using the new email address from vodahost - just my usual one.

Help please - I need to start taking bookings!


09-06-2007, 08:54 AM
There might be a number of reasons. The form is ok, so it can be either a wrong email address setup in your php script, or your ISP blocking the mail. If you have a gmail account, change the email address to be your gmail address, or you can setup an email account within your own domain, and see if you recieve the mails through CP or your Outlook Express. It would help if you could post here the php script as you have it in your action.php page.

09-06-2007, 09:34 AM
Hi - thanks for your reply.
Heres my script in beginning of body. What does CP stand for?


$mailto = "grant7@tpg.com.au";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
$mailsubj = "Bookings";
$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);

09-06-2007, 09:57 AM
CP = Control Panel

Try changing the email address to one within your domain. The script and form are correct, so it can only be a ISP blocking the email issue.

09-06-2007, 09:57 AM
Hi again,

Your right - I changed it to gmail address and it worked.
Why would my ISP be blocking it then? Can I fix that?
I cant really leave it as my gmail address, as I rarely check that mail - unless theres a way to redirect it all??

Thanks for your help!

09-06-2007, 11:12 AM
The easiest thing to do is setup an email address within your own domain, and setup your Outlook Express to recieve the mails straigh in your desktop-