Stephen Hutchison wrote:
This appears to by a problem with the mail function. When I comment out
if (mail($recipient, $subject, $message, $headers))
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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php