Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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.