Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\AppServ\www\web\mails.php on line 20
el código es este
<?
$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="[email protected]";
![enojado](http://static.forosdelweb.com/fdwtheme/images/smilies/enojado.png)
mail($destinatario,$asunto,$tema,$remitente);
}
?>
Gracias de antemano