Skip to main content
Participant
March 31, 2020
Question

Email Javascript

  • March 31, 2020
  • 3 replies
  • 344 views

I have a PDF document that has a mailto: link inside. When I click the link I am presented with an Outlook email to the recipient but I want to add the document as an attachment in the process.

 

Suggestions

This topic has been closed for replies.

3 replies

Participant
April 7, 2020

Thanks for the information. Unfortunately the mailto in the pdf is embedded using the tool that created the PDF (Crystal Reports) The challenge is piggy backing on the embedded mailto after it is created or picking up the email address from the doc after it is created. 

Thom Parker
Community Expert
Community Expert
April 7, 2020

Please explain the process. Is the PDF automatically generated and sent to a client? At what point do you have the opportunity to modify the PDF? 

 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Thom Parker
Community Expert
Community Expert
March 31, 2020

Did you create this PDF? If so, then did you setup the link, or is the email just text on the page. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
March 31, 2020

If this is done using a script you need to use the mailDoc or submitForm commands.

Alternatively, you can use the built-in Submit Form command and set it to submit the complete PDF file.