Re: mail() en HTML

From: Date: Fri, 23 May 2003 15:55:06 +0000
Subject: Re: mail() en HTML
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-36567@lists.php.net to get a copy of this message
y si quiero usar un *multipart/mixed*???? o sea enviar attach y texto en el propio correo saludos lisnetcg > buenos dias.. > > primero debes crear el contenido asi: > > $headers = "From: tucorreo@correo.com \n"; > $headers .= "Organization: Tu empresa\n"; > $headers .= "MIME-Version: 1.0\n"; > $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; > $headers .= "Content-Transfer-Encoding: 8bit\n"; > > $cuerpo="<html><body>ACA EL CODIGO HTML</body></html>" > > if (@mail(tucorreo@correo.com, $asunto, $cuerpo, $headers)){ > echo "Correo Enviado a tucorreo@correo.com" ; > } > else { > echo "Problemas en la conexión al enviar el correo a tucorreo@correo.com"; > } > > > > > ----- Original Message ----- > From: "Vicente Sanchez" <vicente@jamestudios.com> > To: <lista@phpes.com> > Sent: Friday, May 23, 2003 6:36 AM > Subject: [PHP-ES] mail() en HTML > > > > > > Buenos Dias: > > > > Tengo una duda se pueden mandar correos en formato HTML con la funcion > > mail() ?? > > > > y si es asi como se haria ?? > > > > > > Un saludo. > > > > > > Vicente Sanchez > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > > > > > > --------------------------------------------------------------------- > 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 > >

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