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

CREATE HYPERLINK TO AN EMAIL ADDRESS FROM A BUTTON

New Here ,
Sep 12, 2016 Sep 12, 2016

I need your help please.

I have created a 'Email us'  button on my PDF.  When people click on this I want them to be redirected to their email with my email address already in the 'To' area.

I am using the latest Acrobat DC Pro version (free trial) and there is no option to create an email link.  I do not want to write my full email address on the page as I want them to simply click the 'Email us' button.

Can you help with this please?

Many thanks!

TOPICS
Acrobat SDK and JavaScript
986
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

correct answers 1 Correct answer

Community Expert , Sep 12, 2016 Sep 12, 2016

Add a button to your document and select to execute a "Run a JavaScript" action and use the Doc.mailDoc() method. You can find out more about this method in the API documentation: Acrobat DC SDK Documentation - Doc.mailDoc()

Chances are that something like this (modified version of the code in the documentation) will work:

this.mailDoc({

    cTo: "apstory@example.com",

    cCc: "dpsmith@example.com",
    cSubject: "The Latest News",

    cMsg: "A.P., attached is my latest news story in PDF."

  });

Translate
Community Expert ,
Sep 12, 2016 Sep 12, 2016

Add a button to your document and select to execute a "Run a JavaScript" action and use the Doc.mailDoc() method. You can find out more about this method in the API documentation: Acrobat DC SDK Documentation - Doc.mailDoc()

Chances are that something like this (modified version of the code in the documentation) will work:

this.mailDoc({

    cTo: "apstory@example.com",

    cCc: "dpsmith@example.com",
    cSubject: "The Latest News",

    cMsg: "A.P., attached is my latest news story in PDF."

  });

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 ,
Sep 12, 2016 Sep 12, 2016

The name of the second parameter should be "cCc"...

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 ,
Sep 12, 2016 Sep 12, 2016
LATEST

Thanks for proof reading I should know by now to not trust the samples in the API documentation...

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