Re: Re: Intermittent problem sending mail with PHP
| From: | Chris | Date: | Tue, 03 Mar 2009 21:52:43 +0000 |
| Subject: | Re: Re: Intermittent problem sending mail with PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289196@lists.php.net to get a copy of this message | ||
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/