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

Web Service Configuration to send email without outlook or any emaiil

ypanchal
Registered: Oct 22 2008
Posts: 14

Hello,

I am wondering if I can email my pdf form without any email client i.e once user submit on the Email button on the form without opening outlook email it automatically sends email to the predefined address.

Is this possible? How?

Thanks,
Yash

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If the user has Acrobat 8 or later, and you send the form using the "Distribute Email" function in Acrobat Pro, then the user will be given the option of returning the email in a variety of ways. Try it out.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ypanchal
Registered: Oct 22 2008
Posts: 14
Hello Thomp,

That means user can fill out the form and when he/she click on the Emailbutton the form automatically sends in pdf format to the mailto:abc [at] xyz [dot] com address. Am I right?Thanks,
Yash
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, the entire PDF is sent as an email attachments. But, when the user presses the "Email Submit" button, Acrobat displays a dialog asking them how they want to send it.

There is another way to approach this problem. And that is to send the PDF data to Server Script, and have the server script send an email back to you. There are several posts that touch on this topic. Do a forum search.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ypanchal
Registered: Oct 22 2008
Posts: 14
Hello Thomp,

I try via distribute Email but that one is for the people who you know. I want web based fill out I mean I want to put that form in my web site and from there any one from anywhere can fill out and just click on the Email submit button and it will automatically sent as an email with the pdf attachment.

I am trying to find out the PDF data to server script but if you have any idea about this please share with me.

Thanks you very much.

Yash
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Try this, distribute the PDF to yourself. Then copy the PDF you receive in email to the web site. I don't know for sure if this will work, but it's worth a try. Otherwise, for a general purpose scheme you'll need a server script to do the emailing.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ypanchal
Registered: Oct 22 2008
Posts: 14
Hello Thomp,

I try that way but when I try to send email it ask me for sending email via three option. I don't want any option to send via any email client. If you have anything other that you want to share I appreciate all your help and meantime I am also searching for the other option.

Thanks,
Yash
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
That's what's supposed to happen. It's the only way I know of to get Acrobat to offer email options other than a local email client.

Acrobat will never send an email silently from a document. This would break the security model. So your only option is to write a server script to handle it.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ypanchal
Registered: Oct 22 2008
Posts: 14
Hello Thomp,

Ok, in that case I am not familier with the server side scripting scenario I mean could you tell me how can I forward that pdf document to the server and what should I need to do on the server to from server it goes as email with PDF document.

Thanks,
Yash
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
From the PDF side submitting data to a server is easy. Check out this article:

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/

The difficult part is creating the server side script. There are numerous server side scripting languages, ASP, ASP.NET, PHP, Perl, Java, etc. you can use what ever you are familiar with, or whatever you're ISP has loaded on thier servers.

The server script itself doen't send the email. Email is handled through an SMTP server. If you have email, then you already have access to an SMTP server. The server script passes the submitted data, as well as your user name and password, to your SMTP server in order to send the email. So conceptually it's simple. The implementation is something else. However, there are lots of sites out there for info on server scripting. Just do a google on somehthing like "PHP for sending email attachment".

If you are not a programmer then it might be best to consider hiring a developer.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

samulchrist
Registered: Jan 4 2009
Posts: 1
The entire PDF is sent as an email attachments , and have the server script which send an email back to you.The server script passes the submitted data, as well as your user name and password .
http://www.torontowebservices.com/