Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/09/2007, 19:46
Spychaser
 
Fecha de Ingreso: agosto-2006
Ubicación: Argentina, Bahia Blanca
Mensajes: 172
Antigüedad: 17 años, 8 meses
Puntos: 0
Pregunta Re: Enviar email con contenido de consulta

Fridureiks
Gracias por la ayuda, pero igualmente ese no es el error ya que esas comillas me las olvide de poner en el posteo.
Cuando digo en el body coloco las consultas y demas me refiero a esto:

Código PHP:
<? 
$de
="[email protected]"
$destinatario="[email protected]"
$tema="NEWSLETTER";  
$shtml="
<html>
<head>
<title>NEWSLETTER</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body bgcolor='#FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<table width='101%' border='0'>
  <tr>
    <td>
            <?php
            include("
newsletterconexion.php");
            $numero = $_POST['numero'];
            $sql="
SELECT FROM $tbl_name WHERE numero='$numero' AND tipo='contenido'";
            $result=mysql_query($sql);
            while($rows=mysql_fetch_array($result)){
        ?>
<font size="
2" face="VerdanaArialHelveticasans-serif"><? echo $rows['titulo']; ?></font><br>
<font size="
2" face="VerdanaArialHelveticasans-serif"><? echo $rows['texto']; ?></font>
   </td>
  </tr>
</table>
</body>
</html>
"
;

$sheader="From:".$sfrom."nBCC:[email protected]:".$de."n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."n";
$sheader=$sheader."Mime-Version: 1.0n";
$sheader=$sheader."Content-Type: text/html";
mail($destinatario,$tema,$contenido,$sheader);
?>