Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Email Button Javascript no error, but no email generates either

New Here ,
Mar 24, 2023 Mar 24, 2023

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.

TOPICS
JavaScript , PDF forms
599
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2023 Mar 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

 

Capture_2303241453.pngexpand image

 

 


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2023 Mar 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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2023 Mar 24, 2023

Don't set bUI to false.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2023 Mar 24, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines