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

Setting up a Return Thank You Email

bgad1476
Registered: May 7 2010
Posts: 6

Hello,

I have created a job application in Adobe Acrobat Pro 9. As of right now I have it set up that when they hit "Submit" it just sends the application to the client's email address. If at all possible I would really like it to also send a confirmation email back to the applicant saying "Thank you for your submission....yada yada" Could someone please let me know if this is possible.

I've gone through almost all the forum topics on here and so far I have not found a solution. So if that is your only suggestion please offer me a direct link.

Any help is appreciated.

Brian

My Product Information:
Acrobat Pro 9.3.1, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you looked at this article? In the example the clients email is used to send and email to the user as well as the form manager.
http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

bgad1476
Registered: May 7 2010
Posts: 6
Thank you for you response.

I didn't come across this page. So just so I understand what it's telling me. I need to

1: Create a form field where the Applicant enters in an email address.
2. Then I use my current "Submit" button and set the "Action" to "Run a JavaScript" then i enter in the following:

// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
// Change address on your form
var cToAddr = "Client's Email address goes here; Second Client's email address goes here";

// First, get the client CC e-mail address
var cCCAddr = this.getField("ClientEmail").value;

// Now get the beneficiary e-mail only if it is filled out
var cBenAddr = this.getField("BennyEmail").value;
if(cBenAddr != "")
cCCAddr += "" + cBenAddr;

// Set the subject and body text for the e-mail message
var cSubLine = "Job Application Submission";
var cBody = "Thanks for taking the time to submit your application to Noteboom Implement. We appreciate your interest in our family owned dealerships and
will be contacting you soon.";

// Send the form data as an FDF attachment on an e-mail
this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
cSubject: cSubLine, cMsg: cBody});


Is this correct? Just FYI, this job application will need to be submitted to TWO different email address.

With it set up like this it will send the ENTIRE .pdf to the client and also send a message to the application with the thank you message correct?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You are correct!

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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