Help attaching multiple images in email

I have a query in my server action that gets multiple images. I point to the file from the query as my attachment and it only sends the first file. How can I get it to attach all of them?

Thanks!

Try this topic:
https://community.wappler.io/t/add-dynamically-attachment-to-send-mail/16622