Why doesn't my script (send email)?

Hello guys.

What is the problem in my script (to send mail). I want to send an e-mail via LiveCycle just message (I want opens up prospects for the user by typing, without attachment).

var mail; 
var address = "[email protected]"; 
var sub = "Assunto"; 
var corpo = "Texto do corpo do e-mail";
mail = "mailto: " + address + "?subject=" + sub + "&body=" + corpo; 
event.target.submitForm({ cURL: mail, bEmpty: true, cSubmitAs: "PDF", Charset: "utf-8" }); 

Link to the file: https://acrobat.com/#d=1I * dJTGL1a5vNcmlJMk76g

Thank you.

Hello

The script that you have is intended for sending the form as an attachment.

If you want just one button to send an e-mail only, use the event.target.app.mailMsg. The following Javascript code should help:

var vEmail = "[email protected]";
var vSubject = "A Subject for your email";
var vBody =  "Put your body message here...";

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

For more scripts to access Acrobat menu items, take a look on: http://assure.ly/i2LBMC

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for

  • XP Audio recorder

    Abgesehen von dem Audio Recorder bin ich mit danke, aber ich recorder would so like den alten XP Vista. Kann ich den herkriegen und auf installieren Vista irgenwo?

  • Replacement battery for Inspiron 17 5000 (5759) integrated

    Hi, I'm going to buy the new Inspiron 17 5000 (5759).  I was wondering if I change the battery in the future? How can I do?  Or we can just change it? Thank you very much for your help!

  • Trrial has expired and black projection screen on a pirated version of Windows 7

    Original title: key of Activation Windows Hi now iam running a version not genuine windows 7 ultimate sp1. On my desk, he says that this copy of windows is not genuine. But it wasn't the problem for centuries. Earlier, I used to run windows 7 Home Ba

  • Windows 8 deleted everything to re-scan the available wireless networks

    The closest is the thing "charms", icon net settings may or may not view available networks. When it disconnects for any reason, it will not show the last network. Many other devices always connected to the network, its there. There is no way to "sea

  • Best practices for ebs R12.1.3 12 c

    Hi allWe are in the process of upgrading of ebs 11gR 1 (11.1.0.7) 12.1.0.2 DB, but not sure of best practices which can be considered to operate 12 c features. So, please suggest one identifier of note in this respect.Thank youMoore