These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Server script for sending Pdf

Lars
Registered: Dec 20 2008
Posts: 8

Hi all,

i´ve already read a lot, but i couldn´t find an answer to my question:

I have created a form wirth LiveCyyle. The user should fill out the form on his computer and send it to me via http submit.
In some other post, i read, that i need a server script for this operation. The script must be able, to receive the Pdf and send it as Pdf to me. I dont want to process the pdf data on the server.
Where can i find such a script?
Is it possible to use a script, that is able to send emails with attachments?
I hope, that someone can give me some Informations about that.

Regards,
Lars

My Product Information:
LiveCycle Designer, Unix/Linux
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
What type of web server (e.g., Apache on Linus or IIS on Windows) are you using and what sort of scripting environments (e.g., ASP, PHP, etc.) are available? Do you have any web server programming experience?

The general flow of the script would be:

1. Save the incoming data as a PDF file.
2. Do whatever validation is deemed necessary
3. Attach the file to an email message and send it.

An alternative, which is much less reliable, is to simply use a mailto type URL instead of an HTTP POST.

George
Lars
Registered: Dec 20 2008
Posts: 8
Hi George,

i´m using Apache on a Linux system. PHP 5 is available. For my html forms I use PHP Scripts. I would prefer a PHP Script.
I ´d like to use the http submit method. The main reason is, that not all users use outlook.
Can i use a regular attachment mailer script for handling this process?


Lars
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
You might be able to adapt a mailer script for this use. For more information on processing a submission that is the entire PDF using PHP, search these forums for the term $HTTP_RAW_POST_DATA. Your script has to save the entire incoming stream, which is the complete PDF, and somehow attach it to an email message.

George
Lars
Registered: Dec 20 2008
Posts: 8
That means that i have to write a mailer script, that is able to send email with an attachment?
I will get the file contents with $HTTP_RAW_POST_DATA, after this I have to split the mail content and send it as an Email.
Is that correct?


Lars