here is the relevant portion of my code
Code: Select all
<?php
//output generated pdf to a file named test.pdf.
$pdf->Output("test.pdf");
$pdf->Close();
//assign the generate pdf to a variable call $doc
$doc=$pdf;
//code to initialize php mailer goes here ... then i have
$mail->AddAddress("a@myemail.com");
$mail->AddAttachment($doc);
?>Code: Select all
<?php
$mail->AddAttachment("test.pdf");
?>Would be grateful for any comments on this code.