# Email getting the adress from a node funtion

**URL:** <https://discourse.nodered.org/t/email-getting-the-adress-from-a-node-funtion/93154>\
**Category:** General\
**Created:** [14 November 2024 18:42 UTC](https://discourse.nodered.org/t/email-getting-the-adress-from-a-node-funtion/93154 "2024-11-14T18:42:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsrtorres](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bsrtorres/32/96403_2.png) [@bsrtorres](https://discourse.nodered.org/u/bsrtorres)\
**Post date:** [14 November 2024 18:42 UTC](https://discourse.nodered.org/t/email-getting-the-adress-from-a-node-funtion/93154/1 "2024-11-14T18:42:22Z")

</div>

Hello, I am trying to send emails to different address with a number. I am having problems with msg.to. It seems that it is not the right way. Any help ?  
thanks

---

<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:** [14 November 2024 19:35 UTC](https://discourse.nodered.org/t/email-getting-the-adress-from-a-node-funtion/93154/2 "2024-11-14T19:35:24Z")

</div>

Welcome to the forum @bsrtorres

Connect a debug node to the output of the function node that is feeding the email node. Set the debug node to Output Complete Message and show us what it displays.

---

<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:** [12 February 2025 19:35 UTC](https://discourse.nodered.org/t/email-getting-the-adress-from-a-node-funtion/93154/3 "2025-02-12T19:35:36Z")

</div>

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