Hello,
I have the following script on a php page on my site:
<?
if ((!$realname ) or (!$telephone) && (!$email)) {
echo "Please fill out all fields before submitting.<br>Thank You";
echo "Please use the 'Back' button to continue.";
echo "<a href='publications.html' onclick='self.history.back();'>Back</a>";
exit;
}
$message="Name: $realname\n\n".
"Address:\n$address_line_1\n\n".
"Post Code: $postcode\n\n".
"Telephone: $telephone\n\n".
"Email: $email\n\n";
mail("myemail@hotmail.com","$subject","$message","From:$email\r\nReply-to:$email");
echo "<p><br><br>Thank you for your submission.</p>";
echo "</p><a href='publications.html'>Back</a>";
?>[/B]
The user comes to this php page from an html page that has a form in it. Everything works fine and when they fill out the form and click the submit button, I receive the email that the above script generates - the only problem is that I don't receive the email for about 30-45 minutes ?.
Does anyone know why this script takes so long to send the email that it generates ?
Thanks for any help.
(P.S I an a php newbie so I hope this all makes sense)