Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/11/2010, 17:31
escorza94
 
Fecha de Ingreso: octubre-2010
Mensajes: 13
Antigüedad: 13 años, 6 meses
Puntos: 0
Exclamación enviar mail html

hola tengo un codigo en php para mandar un mail pero en el codigo tengo html y cuando lo mando si se manda pero el contenido es el codigo no lo representa como cedriera que lo representala

mi codigo es este
Código PHP:
<?
         
 $cuerpo 
'<html><body><table width="338" height="94" border="0" align="center">
  <tr>
    <td width="332" height="21" bgcolor="#92C83E"><div align="center"><span class="Estilo1">Gracias Por Su Compra </span></div></td>
  </tr>
  <tr>
    <td height="21"><span class="Estilo2">Su codigo de Xbox live es: </span></td>
  </tr>
  <tr>
    <td height="21">&nbsp;</td>
  </tr>
  <tr>
    <td height="21" bgcolor="#F5C123"><span class="Estilo3">www.videogames-plus.com/xbox</span></td>
  </tr>
</table></body></html>'

 
    
//mando el correo...
        
mail("[email protected]","Recuperacion de clave",$cuerpo); 
    
echo 
$cuerpo;
?>
y lo que me manda es esto

<html><body><table width="338" height="94" border="0" align="center">
<tr>
<td width="332" height="21" bgcolor="#92C83E"><div align="center"><span class="Estilo1">Gracias Por Su Compra </span></div></td>
</tr>
<tr>
<td height="21"><span class="Estilo2">Su codigo de Xbox live es: </span></td>
</tr>
<tr>
<td height="21">&nbsp;</td>
</tr>
<tr>
<td height="21" bgcolor="#F5C123"><span class="Estilo3">www.videogames-plus.com/xbox</span></td>
</tr>
</table></body></html>