Re: Enviar emails en html (no en texto plano)

From: Date: Thu, 16 Nov 2000 12:50:05 +0000
Subject: Re: Enviar emails en html (no en texto plano)
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-3853@lists.php.net to get a copy of this message
he probado lo que dices y no me funciona... en lugar de leerlo de un fichero html. he puesto en $content="<html><body><b>hola</b></body></html>"; y en el mail me ha enviado precisamente ese texto, no el html interpretado.. Fernando Caamaño Programador web Interweb Research www.interweb-research.net ----- Original Message ----- From: "Carlos Mayorga" <carlosm@notodo.com> To: <lista@phpes.com> Sent: Thursday, November 16, 2000 1:38 PM Subject: RE: [PHP-ES] Enviar emails en html (no en texto plano) > Yo hago lo siguiente: > > Primero voy guardando el contenido html (a base de unirle > fragmentos)en un archivo txt. Tambien puedes ir añadiendo > a la variable $content las lineas de html. > > <? > $bol = fopen("archivo_html.txt","r"); > $content = fread($bol, filesize("archivo_html.txt")); > $content = str_replace("\\\"","\"",$content); > fclose($bol); > mail(direccion-destino@tuweb.com, "Asunto a enviar", $content, "From: > direccion-origen@tuweb.com\nContent-Type: text/html;\n"); > ?> > > > > --------------------------------------------------------------------- > Archivo On-line: http://www.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 >

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