Código PHP:
$lista_productos = mysql_query("SELECT * FROM articulos LIMIT 0 , 10 ");
$cuerpocliente = <<<HTML
<html>
<head>
<body>
<table width="470" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Su nombre es: $txtnombres $txtapellidos </td>
</tr>
<tr>
<td>
<p>Sus productos son:</p>
while ($rowproductos=mysql_fetch_array($lista_productos)) ;
{
<div style="padding-bottom:03px;">$rowproductos['nombre']</div>
} mysql_free_result($lista_productos);
</td>
</tr>
</table>
</body>
</html>
HTML;
$txtemail = "[email protected]";
$emailempresa = "[email protected]" ;
$asunto = "Lista de Productos" ;
mail($txtemail, $asunto, $cuerpocliente, $sheader = "From:".$emailempresa."\r\nContent-type: text/html\r\n");
Cita:
Probe quitando el $rowproductos['nombre'] y me llega esto por correo: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/teamci/public_html/pruebacorreo.php on line 22
Cita:
Su nombre es:
Sus productos son:
while (=mysql_fetch_array(Resource id #4)) {
} mysql_free_result(Resource id #4);
Sus productos son:
while (=mysql_fetch_array(Resource id #4)) {
} mysql_free_result(Resource id #4);
salu2
Cual seria la solucion para poder enviar bien el correo