I currently generate pdf's using fpdf and send emails with swiftmailer from within cakephp. I have a need to attach a generated pdf to an email now instead of just viewing it in the browser.
What I think I need is to send an email with swiftmailer attaching a generated pdf (in memory, not saved on server) using fpdf.
I know you can use the Output method of FPDF to send save the contents as a variable. I just don't know how to get that back into the place where I can attach it using a swiftmailer component.
Project files provided on request.