0

如何将 pdf 作为 Dompdf 在 php 中生成的附件发送?

生成pdf的代码是这样的。

$this->load->plugin('to_pdf');

pdf_create($this->load->view('print_registration', $data, true), 'Title : Registration Form');
4

2 回答 2

0

Use dompdf to write your PDF file to disk. Then, use the file as an attachment and send the email.

Or

Just save the file that is generated with dompdf and then you can attach it to an email using CodeIgniter's attach() method from the email class.

http://ellislab.com/codeigniter/user-guide/libraries/email.html

于 2013-01-05T13:19:56.630 回答
0

您可以使用PHPMailerSwiftMailer等库。

于 2013-01-05T13:06:51.097 回答