Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

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"

} );