创建 PDF 并通过电子邮件发送 [英] Creating a PDF and sending by email

查看:96
本文介绍了创建 PDF 并通过电子邮件发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究用户在表单中输入一些信息并通过 mail() 发送的能力.

I am looking at the ablity for users to enter some information into a form and send it via mail().

我想要将详细信息作为 PDF 附件发送.可能带有发件人的姓名和日期/时间.test_user_06052011.pdf

What I'd like is for the details to be sent as a PDF attachment. Possibly with the name of the the sender and a date/time. test_user_06052011.pdf

我有一个 PDF 设计,但我不确定如何集成此设计以在 PHP 中创建 PDf.

I have a design for the PDF, but I'm not sure how I'd integrate this design to create a PDf in PHP.

有没有人有我可以做到这一点的例子或方法?

Does anyone have an examples or ways in which I could do this?

推荐答案

查看 FPDF - http://www.fpdf.org/ - 它是免费的,是生成 PDF 的绝佳工具

Have a look into FPDF - http://www.fpdf.org/ - It's free and a great tool for generating PDF's

PHP 推荐了一个 PDF 生成器,但是它非常昂贵,而且我现在不知道这个名字,但是我已经多次使用 FPDF 并取得了巨大的成功.

There is a PDF generator which is recomended by PHP, however it'd very expensive and the name elludes me now, however I've used FPDF several times whith great success.

这篇关于创建 PDF 并通过电子邮件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆