Ver Mensaje Individual
  #6 (permalink)  
Antiguo 19/10/2004, 03:21
Avatar de Antonito
Antonito
 
Fecha de Ingreso: noviembre-2001
Ubicación: en la red
Mensajes: 446
Antigüedad: 22 años, 5 meses
Puntos: 3
A mi se me ocurre que mandes con un php tuyo, algo asl ;) :
$server_connection = mysql_connect
mysql_select_db("tubase", $server_connection) or die(mysql_error());
$sql="SELECT mail AS user FROM listacorreo WHERE ORDER BY `id` LIMIT $desde,$cantidad";
$resultado = mysql_query($sql) or die(mysql_error());
// fichero con la revista :P
$handle = fopen ("revista.php", "r");
$contents = "";
do {
$data = fread($handle, 100000);
if (strlen($data) == 0) {
break;
}
$contents .= $data;
} while(true);
fclose ($handle);
$i=0;
// por si quieres que se pare en el recistro 50000
if($desde>=50000){
exit;
};
while($row = mysql_fetch_array($resultado)) {
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: mail <[email protected]>\r\n";
$headers .= "Reply-To: [email protected]\r\n";
$asunto= "Nueva Revista ";
mail("$row[mail]",$asunto,$contents,$headers);
$emailis .= " , $row[mail]";
$i++;
};
$desde=$desde+20;
$hasta=$hasta+20;
$pagina++;
echo "<html><head>
<META http-equiv='refresh' content='3;URL=dameemails.php?desde=$desde&hasta=$ hasta&pagina=$pagina&enviar=si&cantidad=$cantidad' >
</head><body>";
echo "Ha sido enviado a los mails : $emailis - total = $i </body></html>";
};


Deberias llamarla pagina.php y pasarle pagina.php?desde=0&hasta=10000

a ver que os parece... :S
__________________
Pancho - Consultor de usabilidad