Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/03/2012, 04:13
jota2
 
Fecha de Ingreso: diciembre-2003
Mensajes: 474
Antigüedad: 20 años, 4 meses
Puntos: 5
Respuesta: Función mail: me llega sin formato

Cita:
Iniciado por hasdpk Ver Mensaje
La documentación de PHP de mail() dice:



Con esto quiere decir que tendrías que hacerlo así:

Código PHP:
Ver original
  1. $cabeceras = "Content-type: text/html\r\n";
  2. $cabeceras .= "From: xx";
Gracias, me ha funcionado pero solo con /n, no con /r/n:
Código HTML:
$cabeceras .= "Content-type: text/html; charset=iso-8859-1[B]\n[/B]";