Ver Mensaje Individual
  #16 (permalink)  
Antiguo 29/09/2006, 15:42
Avatar de jpogsistem
jpogsistem
 
Fecha de Ingreso: diciembre-2001
Mensajes: 2.405
Antigüedad: 22 años, 4 meses
Puntos: 4
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.
__________________
EL LIMITE ES EL UNIVERSO

Última edición por Cluster; 29/11/2006 a las 19:31