Skip to main content
Participant
March 24, 2023
Question

Email Button Javascript no error, but no email generates either

  • March 24, 2023
  • 2 replies
  • 667 views

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.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
March 25, 2023

Where are you testing it? What application (including exact version number), and on what OS?

JR Boulay
Community Expert
Community Expert
March 24, 2023

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
Participant
March 24, 2023

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?