Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/01/2009, 02:45
nx00
 
Fecha de Ingreso: agosto-2007
Mensajes: 345
Antigüedad: 16 años, 8 meses
Puntos: 21
Respuesta: envio html con mail

Código PHP:
    $numero_boletin=$_POST["numero_boletin"]; 
    if (
file_exists("$numero_boletin.html")) { 
    
$cuerpo file_get_contents($numero_boletin.".html"; } 
    else { 
$cuerpo="no"; } 

//código necesario para el envio del email con PHP 
$header="From:".$sfrom."\nReply-To:".$sfrom."\n"
$header=$header."X-Mailer:PHP/".phpversion()."\n"
$header=$header."Mime-Version: 1.0\n"
$header=$header."Content-type: text/html; charset=utf-8" "\r\n";   
$txtema=$asunto
//$mensaje1="".include("$cuerpo");."\n"; 
//$mensaje1=$cuerpo; 
$txdetalle=$cuerpo
mail
($txmail,$txtema,$txdetalle,$header); 
Utiliza file_get_contents para obtener el contenido html en una variable.