Multiple attachments for SMTP node

Describe the problem/error/question

I can’t figure how to send multiple files using SMTP node.

Please share your workflow

  1. I download the files.

  2. Write binary files to local storage.

  3. I read binary files and get this output:

  4. Open SMTP node, set Attachment field to Data but i only get one attachment sent.

What i am missing there?

Thanks

Hey @tadas,

Welcome to the community :cake:

You will need to merge the binary items using a code node then you can add them as attachments to the one email, There is a thread here: Cant send Email with multiple attachments :( which covers the process which should help.

Let me know if you have any questions on this.

2 Likes

@Jon Thanks, that worked. Just one note if anyone else will try same. Code block was complaining

But i just ignored it and it works without issues. Will upgrade later today my n8n instance. Let you know if it works then too.

Thanks

1 Like

Works with latest version too. Also had this issue, where i couldn’t use items from other modules. This one helped:

1 Like

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