
rjbathgate
User
Jul 27, 2011, 5:34 PM
Post #1 of 4
(827 views)
Shortcut
|
|
createPDF and attach to mail script
|
Can't Post
|
|
Hello. I have a send to mail script which currently handles uploaded files (uploaded via the form) (attaches to email sent). I now want to be able to create a PDF of a record (using createPDF_display('attachment', $data, $fileName); or similar) and make it available to attach to an the email. So, I think I need to use the createPDF function to create the PDF in a temp folder on the server, but NOT offer it to the user (i.e. no attachment or inline), and then return this temp file path, so I can update my mail script to do attach it. So, I guess my question is, how do I use the createPDF function to save a pdf into a temp folder, but NOT return anything to the front end user, and to return to a variable the file path of said created pdf? Cheers! Rob
|