# Email Node: Multiple Recipients in msg.to

**URL:** <https://discourse.nodered.org/t/email-node-multiple-recipients-in-msg-to/65336>\
**Category:** General\
**Created:** [19 July 2022 20:12 UTC](https://discourse.nodered.org/t/email-node-multiple-recipients-in-msg-to/65336 "2022-07-19T20:12:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesmar96](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@lesmar96](https://discourse.nodered.org/u/lesmar96)\
**Post date:** [19 July 2022 20:12 UTC](https://discourse.nodered.org/t/email-node-multiple-recipients-in-msg-to/65336/1 "2022-07-19T20:12:27Z")

</div>

Continuing the discussion from [Multiple email recipients](https://discourse.nodered.org/t/multiple-email-recipients/31798):

I had posted in this thread awhile back.

We used a format like this and it worked.  
Now, we are setting up a new system and it doesn't seem to work any more.

We have this as well as msg.payload and msg.topic in a function node ahead of the email node. Is our syntax incorrect?

`msg.to = "testuser1@example.net", "testuser2@example.com"; `

It only sends to the first address. If I load both address directly in the email node, comma separated, it sends to both. But I am looking to dynamically change the address.

---

<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:** [19 July 2022 20:59 UTC](https://discourse.nodered.org/t/email-node-multiple-recipients-in-msg-to/65336/2 "2022-07-19T20:59:09Z")

</div>

Should it be this?  
`msg.to = "testuser1@example.net, testuser2@example.com";`

---

<div class="post-metadata">

**Author:** ![lesmar96](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@lesmar96](https://discourse.nodered.org/u/lesmar96)\
**Post date:** [19 July 2022 21:41 UTC](https://discourse.nodered.org/t/email-node-multiple-recipients-in-msg-to/65336/3 "2022-07-19T21:41:32Z")

</div>

Sure enough! I goofed there. It works now. thanks!

---

<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:** [2 August 2022 21:42 UTC](https://discourse.nodered.org/t/email-node-multiple-recipients-in-msg-to/65336/4 "2022-08-02T21:42:24Z")

</div>

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