Stephen Hutchison wrote:
This appears to by a problem with the mail function. When I comment out the lines:
if (mail($recipient, $subject, $message, $headers))
   echo 'Succeeded<br>';
   else
   echo 'Error - please check your e-mail address<br>';


More likely a mail server issue rather than the mail function itself.

Do they have any restrictions on how often you can send email? (Some hosts only let you send say 50 emails an hour).

Log everything you're trying to do in php (log when it works, when it doesn't) and include a timestamp - then get your host to look at their mail server logs for the failure times and see what shows up.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to