Mailing created objects to users
Posted: Sun Dec 10, 2006 5:35 pm
Hi, I've written a short script which creates a rather large object (a PDF file) using FPDF, based on some form input.
At the moment the form page passes on a group of variables to the php file generating the PDF, and the user's browser waits while the server takes its time putting the file together. I would like for the user to be able to enter the desired input in the form (including an e-mail address), and be directed immediately to a page notifying them that when their PDF is complete, a link to it will be mailed to them.
How can I go about achieving this? Are there any open source tools that might help?
I am relatively new to PHP, so any advice on how to minimise server processor usage for such an operation would also be appreciated. Do you think it would be easier to email the file to the user (the files are 2 to 3 MB max)?
Thanks in advance.
At the moment the form page passes on a group of variables to the php file generating the PDF, and the user's browser waits while the server takes its time putting the file together. I would like for the user to be able to enter the desired input in the form (including an e-mail address), and be directed immediately to a page notifying them that when their PDF is complete, a link to it will be mailed to them.
How can I go about achieving this? Are there any open source tools that might help?
I am relatively new to PHP, so any advice on how to minimise server processor usage for such an operation would also be appreciated. Do you think it would be easier to email the file to the user (the files are 2 to 3 MB max)?
Thanks in advance.