Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/01/2006, 22:48
granunca
 
Fecha de Ingreso: octubre-2004
Ubicación: Santiago, Chile
Mensajes: 92
Antigüedad: 19 años, 6 meses
Puntos: 0
Problema al recibir boletin de Noticias

Hola
Pues estoy haciendo mi boletin de Noticias, para mi querida web www.gamebox.cl
Resulta que me llega al correo, pero no me llega como HTML, sino que me aparece todo el código el HTML, como dios lo hecho al mundo ----

esto es lo que hice para enviar los correos:

Código PHP:
 ####################NOTICIAS
  
$result2 $db->sql_query("SELECT * FROM *** WHERE **='0'  ORDER BY time DESC LIMIT 0,5");
if (
$db->sql_numrows($result2) > 0) {
  while (
$row2 $db->sql_fetchrow($result2)) {
    
$sid intval($row2['sid']);
    
    
$informant $row2['***'];
    
$titlebig $row2['title'];
    
$textbig $row2['***'];
    
$title substr($titlebig038); 
    
$text substr($textbig0130); 
    
$comentarios$row2['***'];
    
$text2 $row2['***'];
    
$notero $row2['***'];
    
$categoria $row2['***'];
    
$ratings $row2['***'];
$mensaje "<html>";
$mensaje .= "<head>";
$mensaje .= "<title>Untitled Document</title>";
$mensaje .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">";
$mensaje .= "</head>";

$mensaje .= "<body>";  
$mensaje .= "<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"118\">";
$mensaje .= "  <tr>";
$mensaje .= "    <td width=\"86%\" align=\"left\" valign=\"top\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"10\">";
$mensaje .=  "  <tr>";
$mensaje .= "<td  align=\"left\" valign=\"top\">";
$mensaje .= "<a href=\"http://www.gamebox.cl/modules.php?name=News&amp;****\" class=\"titulo_noticias\" >$title...</a><br>$text...<br><br><a href=\"http://www.gamebox.cl/modules.php?name=News&amp;file=****\" class=\"archivo_news\" >Noticia completa</a><font class=\"informante_noticias\"> |$comentarios Comentarios|</font><hr>";
$mensaje .= "</td>";
$mensaje .= "  </tr>";
$mensaje .=  "</table>";
  
  
  
$mensaje .=  "    <td width=\"14%\" align=\"center\" valign=\"top\">";
$mensaje .= "<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
$mensaje .= "  <tr>";
$mensaje .=  "    <td align=\"left\" valign=\"top\"><table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";

$mensaje .=  "    </table></td>";
$mensaje .=  "  </tr>";
$mensaje .= "  <tr>";
$mensaje .=  "    <td align=\"left\" valign=\"top\" bgcolor=\"#900000\"><table width=\"100%\"  border=\"0\" cellspacing=\"2\" cellpadding=\"2\">";
$mensaje .=  "      <tr>";
$mensaje .=  "        <td>&nbsp;</td>";
$mensaje .=  "        <td align=\"center\" valign=\"middle\"><a href=\"http://www.gamebox.cl/modules.php?name=News&amp;file=***\"><img src=\"http://www.gamebox.cl/***/$sid.jpg\" width=\"100\" height=\"75\" border=\"0\"  class=\"imagenes\"></a></td>";
$mensaje .=  "        <td></td>";
$mensaje .=  "      </tr>";
$mensaje .=  "    </table></td>";
$mensaje .=  "  </tr>";
$mensaje .=  "  <tr>";
$mensaje .= "    <td align=\"left\" valign=\"top\"><table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";

$mensaje .=  "    </table></td>";
$mensaje .=  "  </tr>";
$mensaje .=  "</table>";
$mensaje .= "";
  
$mensaje .= "</td>";

$mensaje .=  "</table>";
$mensaje .= "";
$mensaje .= "</body>";
$mensaje .= "</html>";
  }
  }    
$admin "****@gamebox.cl"
 
####################FIN NOTICIAS    
mail($admin,"Boletin de Noticias",$mensaje); 
Eso, me imagino que debe faltar algun codigo en la función mail , o algo por el estilo,,,
espero me ayuden ,,
Un saludo
__________________
Necesito Colaboradores :arriba:
Siempre aprendiendo algo :pensando:
www.gamebox.cl