Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/07/2006, 15:01
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Prueba:

Código PHP:
<?
  $fp
=fopen("mails.txt","r");
  
flock($fp,2);
  while (!
feof($fp))
  {
    
$mails=fgets($fp,100);
    echo 
$mails."<br>";
    
$asunto="Nuevo mensaje";
    
$tema="Hola este es un email de prueba";
    
$destinatario=$mails
    
$remitente="From: [email protected]\r\nMIME-Version: 1.0\r\nContent-Type: text/html\r\n";
    
mail($destinatario,$asunto,$tema,$remitente);
  }
?>