Have you read the Acrobat JS API reference abouth this method?
The call above will open your mail client and insert "a&b.com" in the to box. If you want to use this code, you should include the full recepient's email address like "John.Doe@example.com".
app.mailMsg(true, "John.Doe@example.com", "", "", "Your Subject Goes Here", "Your message goes here.");
cSubject: "Your subject goes here",
cMsg: "Your message goes here."
The example from the Acrobat JS API reference for this method, has the following example:
var cMyMsg = "Below are the current budget figures:\n\n";
cMyMsg += "Date Compiled: " + this.getField("date").value + "\n";
cMyMsg += "Current Estimate: " + this.getField("budget").value + "\n";
cSubject: "The latest budget figures",
Thank you for posting this infomation this is exactly what i was needing!! I was needing a way to send emails with a varaible from a form in the subject and body! Thank you, i spent hours looking!
I am also needing it to attach the whole current pdf document into the email also. is there anyway todo this? I tried to do it as "submiting a form" function but then it would not let me use the java to do the varaibles in the body and subject.
You need a real client mail program on your computer, like MS Outlook. Then you need the program to support and be set to the MAPI mode. You can not use web based email systems.