Código PHP:
<?php
// asunto
$asunto = 'PRobando JEJE';
$mensaje = '
<html>
<head>
<title>Probando script</title>
</head>
<body>
<h3>pronbando mails</h3>
</body>
</html>
';
// cabeceras
$cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// bucle de envio
$vlineas = file("probando.php");
$i=0;
while ($i < count ($vlineas) ) {
mail($vlineas[$i],"$asunto","$mensaje","$cabeceras");
echo 'ENVIADO<BR>';
}
echo 'acabe';
?>