Expand my Community achievements bar.

Email button without submit

Avatar

Level 10

Trying to setup an email button that just launches the email app with a "to" address but I keep getting a "/" at the end of the email.

I've tried:

xfa.host.gotoURL("mailto://email@address.com");

app.launchURL("mailto://email@address.com");

2 Replies

Avatar

Level 10

Got what I needed from Niall, uses Acrobat's mailMsg():

var vEmail = "email@address.com";
var vSubject = "A Subject or the value from an object";
var vBody =  "Put your message here. \n\nThis will send an email only and not the form or xml.";

event.target.app.mailMsg({
    bUI: true,
    cTo: vEmail,
    cSubject: vSubject,
    cMsg: vBody
    });