Email Button Javascript no error, but no email generates either
Copy link to clipboard
Copied
Fairly new to java and have worked through a few things, but cannot figure this email issue - trying to create a submit button that does the following:
Hardcodes to an email.
Hardcodes cc 2 emails.
Combination of hardcoded and pulled fields for subject.
Hardcodes body.
I currently have this:
var cSubLine = "After Pricing Change Form | Approval Requested " + this.getField("Dept").value + this.getField("Ad Week").value + " Page " + this.getField("Page #").value;
this.mailDoc({bUI:true, cTo: "sample@email.com", cCc: "sample1@email.com;sample2@email.com", cSubject: cSubLine, cMsg: "Please approve this attached After Pricing Change Form."});
When you click it, the button does nothing, but there is not any error that apprears in the debugger either so I feel like I am just missing something apparent. Any help is appreciated.
Copy link to clipboard
Copied
May be a bug of Acrobat?
I still get the same error, even when using a example script copy-pasted from the JS API Reference:
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#maildoc
Acrobate du PDF, InDesigner et Photoshopographe
Copy link to clipboard
Copied
The weirdest part of this is it worked yesterday. I added in different emails and it's broke now. That bug may be the case - any workaround to send an email any other way?
Copy link to clipboard
Copied
Don't set bUI to false.
Copy link to clipboard
Copied
Where are you testing it? What application (including exact version number), and on what OS?

