Re: problema de visualizacion de emails en html

From: Date: Thu, 07 Aug 2003 19:58:51 +0000
Subject: Re: problema de visualizacion de emails en html
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-39127@lists.php.net to get a copy of this message
Hola Lizardo A veces este problema surge al usar el tag <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0Transitional//EN"> Prueba quitarselo a ver si solucionas el problemita. Nos cuentas como te va.... Saludos. ----- Original Message ----- From: "Lizardo Perez Cerpa" <lizardo@unsa.edu.pe> To: <lista@phpes.com> Sent: Thursday, August 07, 2003 12:16 PM Subject: [PHP-ES] problema de visualizacion de emails en html > Hola a todos, una consulta, quiero enviar correos a los usuarios en formato > html, parte del script es este: > > $mensaje=nl2br($mensaje); > > $mensaje_cab = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML > 4.0Transitional//EN\">". > "<HTML><HEAD><TITLE>INSTITUTO DE INFORMATICA - UNSA</TITLE>". > "<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>". > "</head>". > "<body bgcolor=\"#FFFFFF\" text=\"#000000\" > topmargin=\"3\">"; > > hago otras operaciones y cuando envio el correo uso: > > mail($destino, $asunto, $mensaje.$cadena.$mensaje_fin, "From: \"Mi NOmbre\" > <$email_remitente>\nErrors-To: \"xxx@yy.zz\" > <xxx@yy.zz>\n<MIME-Version: > 1.0\nContent-Type: text/html; charset=us-ascii\nContent-Transfer-Encoding: > 7bit"); > > desde el outlook se ve bien, pero el problema es cuando se desde pagina > web(90 % de usuarios visualiza desde web sus mensajes) me nuestra: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML > 4.0Transitional//EN"><HTML><HEAD><TITLE>INSTITUTO DE INFORMATICA - > UNSA</TITLE><META > content="text/html; charset=iso-8859-1" http-equiv=Content-Type></head><body > bgcolor="#FFFFFF" text="#000000" > topmargin="3">********************************************************* > > no reconoce el formato html, ayer que estaba haciendo pruebas respondia bien > pero hoy dia no funciona para nada, algo esta en el script o creen que sea > problema del servidor(Linux) > > disculpen lo extenso del mensaje > > Saludos > > Lizardo > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003

« previous php.general.es (#39127) next »