Good day,
Thank you so much for sharing the script with me. I sat today with my colleague, made necessary changes to your script to suit our needs.
Here is what we used at the end…
var cToAddr = "email1@domain.com";
var cCCAddr = "email2@domain.com";
var cSubLine = "True-up Request for: " + this.getField("entity_name").value + ", Ref. No.: " + this.getField("entity_reference").value;
var cBody = "The attached file contains data that was entered into a form. It is not the form itself." + "\n \nThe recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 or later for more details.";
this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody});
Just to explain the script for other readers. Press the send button in the pdf form will attach the full pdf to an email for the sender.
Two-persons will receive an email that shows the following in the subject box: Entity Name, and Reference.
... View more