If your mailer support adding attachments that are strings then you can use
$rendered = $dompdf->output(). This method sets the variable to the content of the PDF. So in PHPMailer you would do something like this:
$phpmailer->AddStringAttachment($dompdf->output(),'mydoc.pdf','base64','application/pdf').
On Thursday, April 11, 2013 1:38:23 PM UTC-4, Brian Barton wrote:
If I was to attach the generated pdf as an attachment with phpmailer or wordpress' wp_mail function, would I have to save it to the server first then reference the saved server file, or can I skip saving to the server and add it to the mail function by referencing a variable such as $rendered = $dompdf->output() or $dompdf->stream()?