Copy link to clipboard
Copied
Hi All,
new to forum and looking for what can cause Outlook not opening when I use the most basic javascript code mail.Doc Full disclosure, I am not a programmer so I found snippets of code here and there.
This is what I have :
var cToAddr = "my1stemail@address.com";
var cSubLine = "this is my subject";
var cCCAddr = "my2ndemail@address.com";
var cBody = "this is the email body I want to send out";
this.mailDoc({
bUI: true,
cTo: cToAddr,
cCc: cCCAddr,
cSubject: cSubLine,
cMsg: cBody});
This would be activated by pressing a button on the form.
My PDF form has radio buttons, text boxes and 2 signature fields.
Thanks for your help
Copy link to clipboard
Copied
The code itself seems fine. What happens when you press the button, exactly?
Also, did you define any accounts under Edit - Preferences - Email Accounts?
Copy link to clipboard
Copied
Thanks for the reply.
Checkmark is next to "Default email application".
When I click the button, the pointer goes from a "hand with finger" to an arrow, then back to "hand with finger".
It's like if the operation timed out or failed to launch and I am "returned" back to the form where I can continue to input text in the fields.
What is weird is that I sent the form to a friend on a Mac - the button worked. I tried it on my wife's computer (running an older Outlook 2010) and it worked. So I just wonder what happened to Outlook 2016 !
Copy link to clipboard
Copied
What application, including exact version number, are you using to view the PDF file?
Copy link to clipboard
Copied
I tried with Acrobat Pro 2020 ver. 2020.004.30006
and with Reader DC ver. 2021.005.20060