Now checking Zend Mail! $mail = new Zend_Mail(); > > $at = new Zend_Mime_Part($myImage); > $at->type = 'image/gif'; > $at->disposition = Zend_Mime::DISPOSITION_INLINE; > $at->encoding = Zend_Mime::ENCODING_8BIT; > $at->filename = 'test.gif'; > > $mail->addAttachment($at); > > $mail->send(); >
It shows on the manual, it looks pretty simple. Now, I am going to look if I could make a component?! -- Louie Miranda ([EMAIL PROTECTED]) http://www.louiemiranda.net Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :) On Wed, Dec 10, 2008 at 1:29 PM, Louie Miranda <[EMAIL PROTECTED]> wrote: > > Hmm.. This looks kinda simple, but does CakePHP has this feature? > where I could tell that this is base64? I checked the API and I could > not find any. Only a header() option. > > Hmm.. ? > > Louie > > On Dec 10, 11:45 am, Louie Miranda <[EMAIL PROTECTED]> wrote: > > Guys, > > > > I am sending a automated email with PDF attached. > > > > $this->Email->filePaths = array('/home/louie/www/app/webroot/ > > files/'); > > $this->Email->attachments = array('Solutions.pdf'); > > > > When I received this on gmail, it is ok. But, on Yahoo - It is reading > > all garbage. > > > > --3a2adef3a14b3d8fd981f1c8a0f8a719 > > Content-Type: pdf; name="Solutions.pdf" > > Content-Transfer-Encoding: base64 > > Content-Disposition: attachment; filename="Solutions.pdf" > > > > > JVBERi0xLjQNJeLjz9MNCjYgMCBvYmogPDwvTGluZWFyaXplZCAxL0wgMTU4NTk2L08gOC9FIDE1 > > > NDUwNS9OIDEvVCAxNTg0MzAvSCBbIDEyOTYgMjQ0XT4+DWVuZG9iag0gICAgICAgICAgICAgICAg > > > DQp4cmVmDQo2IDUwDQowMDAwMDAwMDE2IDAwMDAwIG4NCjAwMDAwMDE1NDAgMDAwMDAgbg0KMDAw > > > > And so on... > > > > What can I do to fix this? is this a mime problem? > > > > Thanks, > > Louie > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
