Skip to main content
tpk1982
Legend
October 21, 2016
Question

Submit form to emal code is not working

  • October 21, 2016
  • 8 replies
  • 587 views

Hi,

I am novice in acrobat scripting. I am trying to send my PDF form to email by using in submit button. I get some code from this forum but i am not getting the PDF after i sent. May i know where i missed?

Tried coding:

this.mailDoc({ 

bUI: false, 

cTo: "user@example.com"

});

Thanks,

Karthi

This topic has been closed for replies.

8 replies

Karl Heinz  Kremer
Community Expert
Community Expert
October 21, 2016

Are you getting an error message on the JavaScript console?

It's usually not a good idea to use code you find online without understanding what it does. Take a look at the documentation: Acrobat DC SDK Documentation - Doc.mailDoc()

tpk1982
tpk1982Author
Legend
October 21, 2016

Thanks Karl.. Sorry i am not getting any error message.. Also i already read the usage from https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

Karl Heinz  Kremer
Community Expert
Community Expert
October 21, 2016

Actually, that page only gives you a tutorial about how to use it, it does not replace the documentation. There is information in the documentation that is not in the tutorial. This sentence for example is not reflected in the tutorial:

On Windows, the client computer must have its default mail program configured to be MAPI enabled to use this method.

The few lines of code you have should work, so there is something going on outside of the PDF file and/or Acrobat.