Re: Email con includes de PHP

From: Date: Wed, 20 Jul 2005 12:42:58 +0000
Subject: Re: Email con includes de PHP
References: 1 2 3 4  Groups: php.general.es 
Request: Send a blank email to general-es+get-55399@lists.php.net to get a copy of this message
creo sino recuerdo mal... los clientes de correo tanto web .. como outlook eudora son un poco paranoicos con el javascript no se si te llegara a funcionar... On 7/20/05, Ariel Martin Bellio <sisisisol@yahoo.com.ar> wrote: > > No se si es demasiado, pero mirá esta clase > http://www.phpclasses.org/browse/package/9.html > > Saludos! > > El Wed, 20 Jul 2005 06:16:52 -0300, Palsweb.net > <http://Palsweb.net> < > palsweb@palsweb.net> > escribió: > > > Despues de dar varias vueltas al asunmto he pensado de hacerlo con > > javascript en el body onload y me cargue la pàgina php en una quer se > > habra > > sola pero al pero no se como psar la variable $id que en este caso he > > puesto > > que sea el numero 4 al javascript, os reporto el codigo por si alguien > me > > puede ayudar, muchisimas gracias: > > > > > > Crear_correo.php > > > > <?php > > > > $mi_conexion=mysql_connect('localhost','mi_usuario','mi_contraseña') > > or > > die('No se puedo conectar con la base de datos!'); > > > > mysql_select_db('mi_basededatos',$mi_conexion); > > > > $query_Tabla = "SELECT email FROM correus ORDER BY id ASC"; > > $Tabla = mysql_query($query_Tabla, $mi_conexion) or > > die(mysql_error()); > > > > //elaboramos cadena de emails > > $losemails=""; > > while ($row_Tabla=mysql_fetch_assoc($Tabla)) { > > $losemails.=($row_Tabla['email'].", "); > > } > > > > $largo=strlen($losemails); > > if ($largo>2) > > { > > //quitamos ultimos ", " > > $losemails=substr($losemails,0,$largo-2); > > } > > else > > { > > echo "No hay destinatarios!"; > > die(); > > }; > > > > $id=4; > > $mensaje .='<html> > > <head> > > <title>Oferta Conprombau</title> > > </head> > > <body > > onLoad="javascript:window.open(\' > http://www.abellacreativa.com/conprombau/ca > > stella/ofertes_correu.php?id_oferta=" . $id . > > > > "\',\'oferta\',\'width=800,height=600,top=0,left=0,right=0,bottom=0\');"> > > > > <p>En un momento se cargará la oferta, gracias</p> > > </body> > > </html>'; > > > > $asunto='Ofertas Abellacreativa'; > > > > > > $envia='enviante'; > > $remite='info@abellacreativa.com'; > > > > > > mail(null, $asunto, $mensaje, "MIME-Version: 1.0 > > Content-type: text/html; charset=iso-8859-1 > > From: $envia <$remite> > > Bcc: $losemails" . "\r\n") or die("Error al Enviar el Email"); > > echo "Mensaje Enviado con Éxito!"; // > > > > mysql_free_result($Tabla); > > mysql_close($mi_conexion); > > ?> > > > > > > > > > > > > ----- Original Message ----- > > From: "Pablo E. Siciliano" <psiciliano@puentenet.com> > > To: <php-es@lists.php.net> > > Sent: Tuesday, July 19, 2005 11:21 PM > > Subject: Re: [PHP-ES] Email con includes de PHP > > > > > > Hola. > > > > No. Fijate que para hacer lo que estas preguntando ¡El cliente de correo > > tendría que poder interpretar php! > > > > Puede ser que muchos clientes de correo soporten frames o iframes, con > lo > > cual se me ocurre que podrías llegar a mandar una página html que > > incluya un > > frame o iframe, que a su vez resuelva todo lo que tiene que resolver. > > Pero > > eso no es un include de php, ni un ssi. > > > > Saludos! > > Pablo E. Siciliano. > > > > ----- Original Message ----- > > From: "Palsweb.net <http://Palsweb.net>" > > <palsweb@palsweb.net> > > To: <php-es@lists.php.net> > > Sent: Tuesday, July 19, 2005 12:58 PM > > Subject: [PHP-ES] Email con includes de PHP > > > > > > Saludos, > > > > Mi pregunta es la siguiente, se puede enviar un email en foprmato html e > > incluir un include en php que recoja variables de una web?? > > > > > > > ---------------------------------------------------------------------------- > > -------------------------------------- > > PRIVAT I CONFIDENCIAL - Aquest missatge i els document adjunts que pugui > > contenir són confidencials. Si no sou el destinatari del missatge no > > teniu > > permís per llegir-lo, copiar-lo ni reenviar-lo. Si heu rebut aquest > > missatge > > per error, siusplau comuniqueu-ho al remitent retornant el missatge i > > esborreu les còpies del missatge i els seus documents adjunts. Aquest > > avís > > no pot ser eliminat. > > > > PRIVATE & CONFIDENTIAL - This email message and attachments contain > > information that is confidential. If you are not the intended recipient, > > you > > are not permitted to use, copy or distribute the message and attachments > > in > > any manner. If you have received this email in error, please inform the > > sender by return email immediately and delete all copies of the message > > and > > its attachments. This notice should not be removed. > > > > > > > > > ---------------------------------------------------------------------------- > > ---- > > > > > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.323 / Virus Database: 267.9.1/51 - Release Date: 2005-07-18 > > > > > > > > > > ___________________________________________________________ > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > http://correo.yahoo.com.ar > > > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Fernando Gutierrez Perez -- gmeileando un poco :)

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