Código PHP:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: asturnatura.com <[email protected]>\r\n";
$nombre = "asturnatura.com";
$asunto = "asturnatura.com - Identificación";
while($row = mysql_fetch_assoc($mail)){
mail($row['mail'],$asunto,$cuerpo,$headers) ;
echo "el mensaje ha sido enviado a".$row['mail']; }
gracias