Código PHP:
$mensaje="
<html>
<body>
<table>
<tr>
<td>VALOR 1</td>
<td>VALOR 2</td>
<td>VALOR 3</td>
</tr>";
//Rellenar
......
$query=mysql_query("SELECT ... FROM ...;",$conectar_base_datos);
while($row=mysql_fetch_row($query)){
$mensaje.="<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td></tr>";
}
......
//Fin rellenar
$mensaje.="
</table>
</body>
</html>";
//Lleno las cabeceras
$headers.="From: \"$nombre\" <$email>\r \n";
$headers.="X-Mailer:PHP/'.phpversion().'\n";
$headers.="Mime-Version: 1.0\n";
$headers.="Content-Type: text/html";
//Lleno el destino
$destino="[email protected]";
//Lleno el asunto
$asunto="Un mensaje";
//Envio el email
mail($destino,$asunto,$mensaje,$headers);
Me funciona el email si lo envío sin la programación PHP, pero solo no me funciona. Alguien me pude ayudar hacerlo ?