Can anyone tell me IF I have this correct...
In a large database of members, I do not want it to timeout when sending emails...
It sends emails fine, just not sure if it is doing the delay and if it is doing it every 50
$query="select email from members";
$result = mysql_query($query) or die( "ERROR: " . mysql_error() . "\n");
while ($myrow = mysql_fetch_array($result)){
$email=$myrow["email"];
$x = 1;
$hold = 50; // quantity of emails sent before 3 sec delay
mailPoster($email,$curSubject[0],$ADMIN_EMAIL[0],$curMessage[0],$curTextMsg[0]);
$x++;
if($x == $hold) { // When $x is equal to $hold, a 3 sec delay will occur avoiding php to timeout
sleep(5);
$x = 0;