Me acaba de funcionar justo con este codigo :
Código PHP:
<? // Inicias el control del buffer
ob_start();
// aquí la insertas y la ejecutas
$archivo="/vservers/....../vob/vob_preliminar.php";
$msj=file_get_contents($archivo);
// te deshaces del buffer (no lo necesitamos mostrar).
ob_end_clean();
?>
Código PHP:
<?
$sfrom="[email protected]"; //cuenta que envia
$sdestinatario="[email protected]"; //cuenta destino
$ssubject=""; //subject
$shtml="$msj";
$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);
?>
Muchas gracias a todos.