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

send to multi emails

digitalrub
Registered: Aug 7 2007
Posts: 4

I need to have a form email to addresses that correspond to checkboxes within the form. How can I do this?

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Is this an AcroForm or a LiveCycle Form?

Either way, it's possible to add multiple email addresses, at run time, to an email command. It requires JavaScript and the techniques vary slightly with the forms technology.

Look at the "doc.mailForm()" and "doc.mailDoc()" functions in the Acrobat JavaScript Reference. The "cTo" argument takes a ";" delimited list of email addresses.

Setup a button script that builds a list of email addresses by testing each of the checkboxes. Then use one of these email functions. With a slight variation you can use the "submitForm()" function. See this article.

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/[/url]

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

lsutton
Expert
Registered: Nov 15 2005
Posts: 51
You could also use the "mailto:" syntax in the URL. Here's a quick tutorial on the syntax:

[url=http://www.addressmunger.com/mailto_syntax_tutorial/]http://www.addressmunger.com/mailto_syntax_tutorial/[/url]