* Thus wrote Trevor Dowling ([EMAIL PROTECTED]):
> 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('[EMAIL PROTECTED]', $EmailAddress) ) {
        continue;
      }
>     @mail ($EmailAddress, "Support", $Message);
> 

HTH,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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

Reply via email to