Send a Completed Acrobat PDF Form to Two Email Addresses
Question details
The form owner wants a button that emails a completed PDF to both the owner and the address entered by the user.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A PDF form has an email field and needs a button that includes its value as a recipient.
- Observed behavior
- The desired result is an email containing the completed PDF, addressed to the form owner and the person who filled it out.
Open the form in Adobe Acrobat and check the exact name of its email field under Prepare a form. Have the owner's email address ready, and test with a configured email client and a PDF viewer that supports Acrobat JavaScript.
Use an Acrobat JavaScript button to email the PDF
Use mailDoc to create an email with the PDF attached and both addresses in the recipient list.
In Acrobat, open the PDF and select All tools > Prepare a form. Add a button or double-click an existing button to open its properties.
On the Actions tab, select Mouse Up as the trigger and Run a JavaScript as the action, then click Add.
Paste this script into the JavaScript editor. Replace owner@example.com with the owner's address and email with the exact name of the form's email field: var userEmail = this.getField("email").valueAsString; if (!userEmail) { app.alert("Please enter your email address."); } else { this.mailDoc({cTo: "owner@example.com;" + userEmail}); }
Save the PDF, fill in the email field, and click the button. Check that the email contains both recipients and the completed PDF before sending it.

Submit the complete PDF with a dynamic mailto URL
Use submitForm when you want to specify PDF as the submission format and put the user's address in the email's Bcc field.
Work with PDFs and Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office files. Its format support helps you move existing documents into a single workspace. Use Acrobat to create and test the Acrobat-specific JavaScript action described above.

Frequently Asked Questions
How do I find the email field's name?
In Acrobat, select All tools > Prepare a form and inspect the field in the form editor. Use its exact name in this.getField("email"), replacing email if necessary.
Will the button send the email automatically?
The action may open an email workflow or prompt the user for confirmation. The result depends on the PDF viewer, security settings, and configured email client.
How can I send the complete PDF instead of just form data?
In the button's Mouse Up JavaScript action, use this.submitForm with cSubmitAs set to "PDF". Test the resulting attachment in the intended viewer and email client.
Why doesn't the button work in a browser PDF viewer?
Browser viewers may not support Acrobat JavaScript or PDF email actions. Open the form in Acrobat or Adobe Reader and test the button with an email client configured.
Can the user receive a copy without appearing in the To field?
Use a submitForm mailto URL with the user's encoded field value in the bcc parameter. Check that the email client preserves the Bcc recipient before sending.




