# Is it possible to send csv filed in to gmail account?

**URL:** https://discourse.nodered.org/t/is-it-possible-to-send-csv-filed-in-to-gmail-account/74838
**Category:** General
**Tags:** function-node
**Created:** [7 February 2023 11:32 UTC](https://discourse.nodered.org/t/is-it-possible-to-send-csv-filed-in-to-gmail-account/74838 "2023-02-07T11:32:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![issambfs1](https://avatars.discourse-cdn.com/v4/letter/i/ea666f/32.png) [@issambfs1](https://discourse.nodered.org/u/issambfs1)
#### Post date: [7 February 2023 11:32 UTC](https://discourse.nodered.org/t/is-it-possible-to-send-csv-filed-in-to-gmail-account/74838/1 "2023-02-07T11:32:44Z")

</div>

is it possible to send csv filed in to gmail account ? if yes how can i do that

i already try send only msg and reserved it but i dont how to add file

this what i did inject into function node into email

code of function : msg ={  
payload: "the LEVEL alarm has been triggered [LEVEL water is high]" + Date( ).toString(),  
topic: "LEVEL is high",  
to: "[address@gmail.com](mailto:address@gmail.com), secondar@address",  
cc: "[more@address.com](mailto:more@address.com) , [example@gmail.com](mailto:example@gmail.com)",  
bcc: "further@recipients, [more@address.com](mailto:more@address.com)"

```
};
return msg

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 February 2023 11:44 UTC](https://discourse.nodered.org/t/is-it-possible-to-send-csv-filed-in-to-gmail-account/74838/2 "2023-02-07T11:44:05Z")

</div>

If you look at the help text for the email node it tells you how to send an attachment.

---

<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: [8 April 2023 11:44 UTC](https://discourse.nodered.org/t/is-it-possible-to-send-csv-filed-in-to-gmail-account/74838/3 "2023-04-08T11:44:21Z")

</div>

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