Sending multiple attachments with the Send-Email Function

first, I’m a beginner in this section, so I’m sorry if I have overlooked an existing function for it :slight_smile:
I get Binary Attachments over the Webhook Node (can. be 1,2,3 etc.). This is working

Now I want to forward these files with the Send-Email Node. The comma separation unfortunately does not work, because the number of files can be different.
I think I need the function Node and map over the files, right?
Can someone help me here out.

Thanks in advance

Welcome to the community @LycaKnight!

In this case, no special Function-Node is required, it can be done via an expression on the “Attachments” parameter.

The following should do the trick:

{{ Object.keys($binary).join(',') }}
1 Like

oh, haha.
Perfectly worked.
Thank you very much :slight_smile:

1 Like

Sure, happy to hear! Have fun!