【发布时间】:2013-12-19 10:19:38
【问题描述】:
我想发送一封带有 PDF 附件的电子邮件。但是该文件是动态生成的 php 文件。所以我想将 php 文件转换为 PDF..
我在这里用过phpmailer。
$mail->AddAttachment("view.php");
如何将 view.php 转换为 pdf 文件
【问题讨论】:
-
上述问题问了很多次,但看看tcpdf.org
-
您只是想创建文件并稍后使用 mailto 功能附加它,还是想从您的网站发送电子邮件? v swiftmailer.org/docs/sending.html 就是答案。
标签: php pdf attachment phpmailer