Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

send a plain email without attachments

Avatar

Level 2

Hi Experts

I just want to have a button to send email that include only the custom text which I have stored in the form already. Now I tried with Submit email button options I am able to do this only with attachment of the form.

Is there any other way to send mail just a plain text without any attachments. I am using LC Designer 8.

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

to send a plain mail you can use the app.mailMsg method.

app.mailMsg({

          bUI: false,

          cTo: 'a@b.com',

          cCc: '',

          cBcc: '',

          cSubject: 'My mail',

          cMsg: 'Hello,\n\nbla bla bla\n\nKind regards\nMe'

});

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

to send a plain mail you can use the app.mailMsg method.

app.mailMsg({

          bUI: false,

          cTo: 'a@b.com',

          cCc: '',

          cBcc: '',

          cSubject: 'My mail',

          cMsg: 'Hello,\n\nbla bla bla\n\nKind regards\nMe'

});

Avatar

Level 2

Hi radzmar

it works perfect. Thanks a lot.