Ciao a tutti.
Ha un senso secondo voi dividere gli invii in blocchi da 150 e gestirli così?

Codice PHP:
        $query "SELECT * FROM newsletter ORDER BY id ASC";
        
$result mysql_query($query$db);
        while (
$row mysql_fetch_array($result)){
        
$mail $row[mail];
        
$conf $row[conferma];
        if(
$conf == "1" and $row[id] <= "150"){
        
mail("$mail""$oggettoinv""$testoinv""MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\nFrom: [email]newsletter@teatroartevita.com[/email]");
            }
        }
        
sleep(10);
        
        while (
$row mysql_fetch_array($result)){
        
$mail $row[mail];
        
$conf $row[conferma];
        if(
$conf == "1" and $row[id] <= "300" and $row[id] >= "151"){
        
mail("$mail""$oggettoinv""$testoinv""MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\nFrom: [email]newsletter@teatroartevita.com[/email]");
            }
        }