Yes, you just save the PDF as a file on disk using dompdf and then
attach it to an email. You may find the PEAR Mail_Mime class useful for
creating the email, especially the addAttachment method:
http://pear.php.net/manual/en/package.mail.mail-mime.addattachment.php
For saving the PDF, just use file_put_contents:
http://www.php.net/file_put_contents
Paul
--
Paul Waring
http://www.pwaring.com
Something like this:
<?php
$html = ''; // put your HTML into this variable
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
file_put_contents('/path/to/file.pdf', $dompdf->output());
$headers['To'] = 'som...@example.org';
$headers['Subject'] = 'PDF File email';
$mime = new Mail_mime();
$mime->setTXTBody('email body text');
$mime->addAttachment('/path/to/file.pdf');
$body = $mime->get();
$headers = $mime->headers($headers);
$mail =& Mail::factory('mail');
$mail->send('som...@example.org', $headers, $body);
?>
Of course you can, and probably should, make the filename a variable,
and obtain the HTML from somewhere (e.g. Smarty's fetch() method).