Expand my Community achievements bar.

Send email without PDF attachment

Avatar

Level 2

Hi everyone,

I am looking for help with creating a form and sending specific text fields in the body of an email, without having it attach the pdf itself.

To clarify, I would like to send the "Date", "Name", and "Room" in the body of an email. But I do not want to attach a pdf at the same time.

emailpdf.jpg

Any help is much appreciated.

1 Reply

Avatar

Level 10

There is a mailMsg() method you can use.

var cVariable = xfa.resolveNode("form1.page1.textField2").rawValue;

app.mailMsg({

bUI: true,

cTo: "myBoss@example.com",

cSubject: "A Message for you",

cMsg: "Hello,\n\n" + cVariable + "\n\nKind regards"

} );