title: Generate pdf with dompdf and send it as an attachment in email in cakephp
body: <p>I am developing an application in cakephp in which i need to generate a pdf and send it as an email attachment. I have been able to create a pdf view using dompdf but I dont know how to save it as a file and send it as an attachment in email. Please tell me how to achieve this.</p>