Writing All Items into the body of Email from List

Hi all,

I have a list of string. What i want is that, writing all items into the mail body from the list.

How can i do that?

Thanks.

@Kuki_Force

String.join(",",List) this will convert list to comma separated string which you can use in mail …you can use any separator as you need

List is where you give your list

Cheers

1 Like

Thanks for your help :slight_smile:

if i want to write each item to new line,

how can i do that?

@Kuki_Force

String.join(Environment.Newline(),List)

If IsHTMLbody is checked then

String.join("<br>",List)

cheers

2 Likes

It worked. Thanks a lot.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.