Can Adobe Acrobat mailDoc Send Different Files From a PDF Button?
Question details
Determine whether an Acrobat JavaScript button can email different files automatically using mailDoc.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF author wants a button's Mouse Up event to send different files by email.
- Observed behavior
- The desired workflow would automatically attach separate files rather than email the current PDF.
Identify whether you need to email the current PDF, submit form data, or attach separate files. Have the intended files and recipient's email address ready.
Attach Separate Files in an Email Client
Use an email client when you need to send files other than the current PDF.
Acrobat's mailDoc method is intended to email the current PDF, not arbitrary files selected by a button script. Security restrictions prevent a PDF button from using mail functions to attach unrelated files automatically.
Form submission can send form data, but attachments may be wrapped in FDF rather than sent as separate files, making it impractical for this purpose.
Open your email client, select Compose or New Message, and enter the recipient.
Select Attach or the paperclip button, then choose each file you want to send.
Check the recipient and attachment list, then select Send.

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 Microsoft Office files. Its format compatibility helps make migration straightforward, but it does not bypass Acrobat's mailDoc security restrictions.

Frequently Asked Questions
Can an Acrobat button use mailDoc to attach a different file?
No. Acrobat's mailDoc method emails the current PDF; security restrictions prevent a button script from using it to attach arbitrary files.
Can I email the current PDF with mailDoc?
Yes. An Acrobat JavaScript button can call mailDoc for the current PDF, although the email client or security settings may require user confirmation.
Can a PDF form submission send files as normal email attachments?
Form submission can send data, but attachments may be packaged in FDF rather than delivered as separate files. For separate attachments, use your email client's Attach button.
Does WPS Office remove Acrobat's mailDoc restrictions?
No. WPS Office can help you work with PDFs and Office documents, but it does not change Adobe Acrobat's JavaScript security rules.




