sipher_z sipher_z - 1 month ago 7
PHP Question

Creating a PDF and sending by email

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

mail()
.

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


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?

Answer

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

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.

Comments