Skip to main content
Inspiring
February 25, 2025
Answered

app.mailMsg bUI parameter "false" ignored

  • February 25, 2025
  • 1 reply
  • 1020 views

My computer is a Mac, my default email client is Apple Mail and I am using the most recent version of Acrobat DC.

 

I have created an email script with app.mailMsg and the bUI parameter set to false. The body of the message sends a link for a Dropbox file represented by var link . The false parameter is ignored. The message is opened in Apple Mail, composed and ready to send, but requiring user

interaction. The variables in the script are all defined and the link works as intended when clicked in the message.

I need my message to send without user interaction and would appreciate insight / suggestions for accomplishing this. Here is my app.mailMsg script.

 

app.mailMsg(false, attyEM, sendTo, "", "Welcome to ABC", "\r\r" + fn + ":\r\rThank you for accepting our invitation.  Start with this Dropbox link to download essential information about Acrobat and its preferences.\r\r\t" + link + "\r\rEmail us or call if you need help.\r\r");
Correct answer PDF Automation Station

When the script is not executed from a privileged context (console, action, trusted function in a folder level script) the bUI false parameter is not honored and defaults to true.

1 reply

PDF Automation Station
Community Expert
Community Expert
February 25, 2025

When the script is not executed from a privileged context (console, action, trusted function in a folder level script) the bUI false parameter is not honored and defaults to true.

ODuinnAuthor
Inspiring
February 25, 2025

Thank you. 

ODuinnAuthor
Inspiring
February 25, 2025

Well, although I'm sure this is the correct answer it's not working for me. I placed the script in a folder level trusted function with everything between app.beginPriv(); and app.endPriv(); but the result is the same, i.e., the script executes everything except actually sending the message without interaction. Therefore I am back to asking for insight as to why the mail message will not send without user interaction. My script has not otherwise changed.