Afternoon all,

I am trying to attach a PDF (which I generate on the fly by accessing 
/bookings/invoice/%id%.pdf) to an email sent via CakeEmail, but as 
CakeEmail->attachment expects a /full/path/to/file the following results in 
a 'File not found: ""' error:
$email->attachments(array('invoice.png' => '/bookings/invoice/1.pdf')) ;

The idea is not to generate and store emails on the web server but only 
generate them when requested, so there is no physical file to attach.  Is 
there a way I can get it to attach the output of /bookings/invoice/%id%.pdf?

Thanks, Paul.


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to