RE: [PHP-ES] Mail Attachment

From: Date: Wed, 14 Apr 2004 15:46:45 +0000
Subject: RE: [PHP-ES] Mail Attachment
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-47658@lists.php.net to get a copy of this message
Poner interes al leer los manuales, o leerlos completos. El primero, espera una cadena ASCII o binary con el contenido, el segunda, si espera el nombre del archivo. 1-------------------------------------- AddStringAttachment (line 1248) Adds a string or binary attachment (non-filesystem) to the list. This method can be used to attach ascii or binary data, such as a BLOB record from a database. void AddStringAttachment (string $string, string $filename, [string $encoding = "base64"], [string $type = "application/octet-stream"]) string $string: String attachment data. string $filename: Name of the attachment. string $encoding: File encoding (see $Encoding). string $type: File extension (MIME) type. 2 -------------------------------------- AddAttachment (line 1000) Adds an attachment from a path on the filesystem. Returns false if the file could not be found or accessed. bool AddAttachment (string $path, [string $name = ""], [string $encoding = "base64"], [string $type = "application/octet-stream"]) string $path: Path to the attachment. string $name: Overrides the attachment name. string $encoding: File encoding (see $Encoding). string $type: File extension (MIME) type. > Si en el mismo directorio... > > -----Original Message----- > From: Julio Herrera [mailto:jherrera@chilered.com] > Sent: miércoles, 14 de abril de 2004 12:31 > To: php-es@lists.php.net > Subject: RE: [PHP-ES] Mail Attachment > > El archivo zip esta en el mismo directorio que el programa que envia el > email???? > > Julio > > -----Mensaje original----- > De: Marcelo Mangiacavalli [mailto:marcelo@verusconsulting.com] > Enviado el: Miércoles, 14 de Abril de 2004 11:23 > Para: 'Julio Herrera'; php-es@lists.php.net > Asunto: RE: [PHP-ES] Mail Attachment > > > Estimados: > > Estoy utilizando esta clase..y para el attach uso > > $mail->AddStringAttachment("list.zip", "list.zip"); > > el problema es que cuando recibo el mail al attachment es invalido... > > 1.tengo que especificarle untito $Type o $Encoding en particular para > que pueda hacer el attachment? > > 2. el priemr parámetro $string que según la documentación es string > attachment data...debo especificarlo de alguna otra manera? O es > simplemente la ubicación y nombre del archivo?? > > Muchas gracias > > -----Original Message----- > From: Julio Herrera [mailto:jherrera@chilered.com] > Sent: miércoles, 14 de abril de 2004 11:01 > To: php-es@lists.php.net > Subject: RE: [PHP-ES] Mail Attachment > > http://phpmailer.sourceforge.net/ lo mejorcito para enviar > correo con > una multitud de opciones incluido attach > > Julio > > > -----Mensaje original----- > De: David Moreno Garza [mailto:damog@damog.net] > Enviado el: Miércoles, 14 de Abril de 2004 9:43 > Para: Marcelo Mangiacavalli > CC: php-es@lists.php.net > Asunto: Re: [PHP-ES] Mail Attachment > > > On Wed, 2004-04-14 at 08:11, Marcelo Mangiacavalli wrote: >> Estimados Listeros: >> >> Estoy teniendo la necesidad de enviar un mail con un attach hasta >> ahora he usado mail(..) y funciona muy bien para enviar mails.. pero >> no se como hacer un attach.. alguien me puede dar una idea de cómo >> implementar el attachment? > > Quizá te pueda servir esto: > http://www.zend.com/zend/spotlight/sendmimeemailpart1.php > > Saludos, > > -- > David Moreno Garza <damog@damog.net> > http://www.damog.net/ > PGP 356E16CD - 84F0 E180 8AF6 E8D0 842F B520 63F3 08DB 356E 16CD > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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