# Issue with attachment in email node

**URL:** <https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899>\
**Category:** Core Development\
**Created:** [12 February 2021 21:43 UTC](https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899 "2021-02-12T21:43:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickos/32/68672_2.png) [@mickos](https://discourse.nodered.org/u/mickos)\
**Post date:** [12 February 2021 21:43 UTC](https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899/1 "2021-02-12T21:43:22Z")

</div>

Hello,

I have been using the email node-red-node-email node in my flows and I upgraded it to 1.8.3 and it has stopped sending attachments.

I grabbed another mail node (email-out) and it still works with that

Node-Red Version: 1.2.9  
OS: Windows  
Sending a small text/csv file

This is in my function node:

```auto
msg.attachments = {
            filename: "Query.txt",
            path: "C:\\temp\\Query.txt" // stream this file
};

```

Thanks  
Mick

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [12 February 2021 22:23 UTC](https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899/2 "2021-02-12T22:23:28Z")

</div>

Attachments needs to be an array

---

<div class="post-metadata">

**Author:** ![softy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/softy2k/32/23707_2.png) [@softy2k](https://discourse.nodered.org/u/softy2k)\
**Post date:** [12 February 2021 23:09 UTC](https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899/3 "2021-02-12T23:09:46Z")

</div>

Take a look here : [Email with 3 attachments?](https://discourse.nodered.org/t/email-with-3-attachments/28110)

---

<div class="post-metadata">

**Author:** ![mickos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickos/32/68672_2.png) [@mickos](https://discourse.nodered.org/u/mickos)\
**Post date:** [13 February 2021 03:41 UTC](https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899/4 "2021-02-13T03:41:46Z")

</div>

ahh yes, thanks for your help, sorted now

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 February 2021 03:42 UTC](https://discourse.nodered.org/t/issue-with-attachment-in-email-node/40899/5 "2021-02-27T03:42:04Z")

</div>

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