Hola
hace un promedio de una semana el Sr. Cluster dio algo mas o menos parecido a esto aqui
Código PHP:
// Inicias el control del buffer
ob_start();
// aquí la insertas y la ejecutas
include("index.htm");
// capturas el buffer en este punto a una variable
$html=ob_get_contents();
// te deshaces del buffer (no lo necesitamos mostrar).
ob_end_clean();
Código PHP:
$sfrom=""; //cuenta que envia
$sdestinatario=""; //cuenta destino
$ssubject=""; //subject
$shtml=""; //mensaje
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
mail($sdestinatario,$ssubject,$shtml,$sheader);
aqui pondrias
Código PHP:
$shtml="$html"; //mensaje
Vuelvo y repito mas o menos algo así dale taller o postea