Re: Mail problem
| From: | Curt Zirzow | Date: | Mon, 22 Sep 2003 17:05:17 +0000 |
| Subject: | Re: Mail problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163504@lists.php.net to get a copy of this message | ||
* Thus wrote Trevor Dowling (td01@csr.com):
> PHP Version 4.3.2
> I am having problems sending a large number of emails from a mail list held
> in a database. I don't belive that the database has anything to do with the
> problem.
>
> I have about 9000 addresses and can only successfully send about 2000 mails
> before the page say complete/done.
see set_time_limit().
http://php.net/set_time_limit
Also the webserver will disconnect after a certain amount of time,
you can search the archives to see how people resolved this in the
past.
>
> while (odbc_fetch_row ($result))
> {
>
> $EmailAddress = trim (odbc_result ($result, 'email'));
>
> flush();
flush isn't necessary here, doesn't have anything to do with your
issue though.
oh, and also add a few lines that say:
if(preg_match('\@zirzow\.dyndns\.org', $EmailAddress) ) {
continue;
}
> @mail ($EmailAddress, "Support", $Message);
>
HTH,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."