These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Linking a button to your email program

Gorsewaygirl
Registered: Jan 26 2007
Posts: 2

I regularly create newsletters whcih incorporate various email addresses to contact the originators of the articles within. I can link web addresses to open safari and load the relevant web page. How do I link the email addresses to open up a new window in my email software and allow me to send an email to that person. I can't work this out - and a step by step solution whould be appreciated. Thanks

My Product Information:
Acrobat 7, Macintosh
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Gorsewaygirl,

1.Create a button or text field on the form.
2.Right click on the button and go to Properties ->Actions tab.
3. Set Select Trigger to "Mouse Up", Select Action to "Run a JavaScript" then click the "Add" button.
4. Paste in this JS code-
app.mailMsg({bUI: true, cTo: "<span class="spamspan"><span class="u">newsletter</span> [at] <span class="d">newsletter [dot] com</span></span>", cSubject: "Comment on Newsletter", cMsg: "Hi Newsletter Team\n"});
5. Click Close.

This will open your local email program with a new message that has the email address, subject line, and salutation prefilled out (of course you need to change the message between the quotes to what you want it to be).

I believe this only works for Adobe Reader users with at least version 7 or above. If on earlier versions than Reader 7, I think the document needs to have Usage Rights applied to it.

Hope that helps,

Dimitri Munkirs
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]