# Multiple attachments for SMTP node

**URL:** <https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960>\
**Category:** Questions\
**Tags:** smtp\
**Created:** [August 4, 2023, 10:15am UTC](https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960 "2023-08-04T10:15:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadas](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tadas](https://community.n8n.io/u/tadas)\
**Post date:** [August 4, 2023, 10:15am UTC](https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960/1 "2023-08-04T10:15:30Z")

</div>

## Describe the problem/error/question

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

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/0/50198cec57429ebd73573e14df57d3817efaeee8.png)

## 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

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 4, 2023, 11:40am UTC](https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960/3 "2023-08-04T11:40:53Z")

</div>

Hey @tadas,

Welcome to the community 🍰

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 :(](http://community.n8n.io/t/cant-send-email-with-multiple-attachments/22736) which covers the process which should help.

Let me know if you have any questions on this.

---

<div class="post-metadata">

**Author:** ![tadas](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tadas](https://community.n8n.io/u/tadas)\
**Post date:** [August 7, 2023, 6:57am UTC](https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960/4 "2023-08-07T06:57:20Z")

</div>

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

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/7/87ea37d3e90870f8156d98d5f51dbe9694fe9e53.png)

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

---

<div class="post-metadata">

**Author:** ![tadas](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tadas](https://community.n8n.io/u/tadas)\
**Post date:** [August 7, 2023, 2:10pm UTC](https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960/5 "2023-08-07T14:10:30Z")

</div>

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

> [@ERROR: Can’t get data for expression under ‘Values to Set \> String’ field](http://community.n8n.io/t/error-can-t-get-data-for-expression-under-values-to-set-string-field/27240):
>
> Describe the problem/error/question I am getting an error (see below) from the Set node. If I read correctly, it says it needs data from another node (aggregateTravelParty). But this node is not anyhow connected to this Set node. There are some weird symptoms: The whole workflow works if only one item is in the node preceding (getTravelParty) the aggregateTravelParty node. If I remove the third string in the set node – the key is fldUL66oGkNJ082c1, the error moves to the Filter node (the err…

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 14, 2023, 2:10pm UTC](https://community.n8n.io/t/multiple-attachments-for-smtp-node/28960/6 "2023-08-14T14:10:43Z")

</div>

Closed on August 14, 2023, 2:10pm UTC

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