Re: Mail problem

From: Date: Tue, 23 Sep 2003 08:15:29 +0000
Subject: Re: Mail problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-163552@lists.php.net to get a copy of this message
All, Many thanks for you thoughts, I will take a look at your suggestions, I hope they fix the issue, others suggested the same things so I think we can assume your all correct, (I hope so!) Once again, thanks Trevor "Curt Zirzow" <php-general@zirzow.dyndns.org> wrote in message news:20030922170517.GY54958@bagend.shire... > * 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."

« previous php.general (#163552) next »