Email Node: Multiple Recipients in msg.to

Continuing the discussion from Multiple email recipients:

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.

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

1 Like

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

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