Send mail from pdf without form (any attachment)

I want to send a mail with javascript (get email from textbox value, with custom subject & body) but without any attachment (no pdf,fdf, no file attached) Just a message for thanking him submitting the form.

Can anyone help me? Please.


Muhammad Irfan


Voted Best Answer

Hi

Yes if you add this code it should work

//capture the email text field

var myEmail = this.getField("nameOfTextFieldToGoHere").value;


//create the email
var cMyMsg = "Create your custom message here";

app.mailMsg({

bUI: true,

cTo: myEmail,

cSubject: "Create your subject heading here",

cMsg: cMyMsg

} );


Hope this helps?


By Sean Mitchell   


Please specify a reason: