Sending multiple Attachments dynamically from DB using "Send Mail"

Hi, I need your help.
I can’t figure out how to attach multiple files from DB and sending using “Send Mail” in Server Actions.

The files are retrieving from a simple table like:
id | column_value| alias
image

And, in this step of Send Mail I’m stuck how to do it.

The recipients user is only one, so, this email send to only one user but the same should have contain multiple files (4),
The files change over time, that’s why I need dynamically attach to email.
Thanks.

Community Page
Last updated: