Skip to main content
rakeshk21205956
Inspiring
June 6, 2020
Question

Attach PDF file to the Email on Submit (which is as attachments to the orginal Form)

  • June 6, 2020
  • 2 replies
  • 821 views

I have one Main Form which has 6 PDF Files Attached into it.

 

Now i want when the user click the submit button..... 3 specific files (which are as attachment to the main form)  are attached to the email (not the Main form) .

 

 

Is this possible.?

 

Thanks

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
June 7, 2020

Acrobat will only email one document at a time. So a script could send 3 emails. Each with one document attachment.  

However, this will cause the email UI to be displayed 3 times.

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
rakeshk21205956
Inspiring
June 9, 2020

Thanks for the reply......

 

if can explain how to add an attachment of a main pdf form as an email attachment. (dont want the main form to be attached.. only the attachment of the main file).

 

thanks

Thom Parker
Community Expert
Community Expert
June 24, 2020

The "doc.mailDoc()" function emails the current PDF document. So, if these attachments are PDF files, then use the "doc.openDataObject()" function to open the PDF attachment and then send it with "doc.mailDoc()".

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Bernd Alheit
Community Expert
Community Expert
June 6, 2020

Not possible.