# Node-red-node-email

**URL:** <https://discourse.nodered.org/t/node-red-node-email/22507>\
**Category:** General\
**Created:** [2 March 2020 15:50 UTC](https://discourse.nodered.org/t/node-red-node-email/22507 "2020-03-02T15:50:18Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 15:50 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/1 "2020-03-02T15:50:18Z")

</div>

with the node-red email do I need to set any thing else up so that it is able to send to my local SMTP server that is on the same network I know how to configure the smtp server (windows).  
but I dont know how the Pi see the smtp server on my existing network (yes I know what it's IP address is)

the node-red email is sending the message but it does not get to my local server

again I hope this makes sense

---

<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:** [2 March 2020 16:05 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/2 "2020-03-02T16:05:28Z")

</div>

How have you configured the email node?  
Does it give an error when you attempt to send an email?

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 16:08 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/3 "2020-03-02T16:08:58Z")

</div>

no it appears to be sending (it set up in the same way I would do a windows one)

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 16:09 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/4 "2020-03-02T16:09:48Z")

</div>

yes I am using the ip address so there is no need to name resolve

---

<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:** [2 March 2020 16:12 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/5 "2020-03-02T16:12:51Z")

</div>

I think that means it is getting to the server.  
Look in the mail server log and see what it says.

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 16:14 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/6 "2020-03-02T16:14:25Z")

</div>

that's the problem it does not appear to get there (it could be the sending address issue but I cant see where you specify who the email has come from)

---

<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:** [2 March 2020 16:27 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/7 "2020-03-02T16:27:56Z")

</div>

> [@gbond](#):
>
> it does not appear to get there

Is that from the server log or do you actually mean it does not get to the recipient?

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 16:34 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/8 "2020-03-02T16:34:02Z")

</div>

I can't see it coming into the server

---

<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:** [2 March 2020 17:16 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/9 "2020-03-02T17:16:14Z")

</div>

Is that from the server log?  
If you send a message via that server from another client do you see it in the server log?

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 17:57 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/10 "2020-03-02T17:57:34Z")

</div>

yes  
I think I need to set the from address I cant see where you set this up or see what it is?

---

<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:** [2 March 2020 18:04 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/11 "2020-03-02T18:04:16Z")

</div>

By default it is the username you use to login to your server. Or you can set msg.from

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 18:09 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/12 "2020-03-02T18:09:04Z")

</div>

sorry I only sort of understand this! Im already sending my devices msg.payload to the email node how would I also add the msg.from?

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 18:17 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/13 "2020-03-02T18:17:13Z")

</div>

Yes it was the from address causing the issue I think I have now worked it out

Mank 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:** [2 March 2020 18:42 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/14 "2020-03-02T18:42:07Z")

</div>

Are you saying that if you don't set msg.from then the email node says it has sent ok but it never gets to the server? That sounds odd. I can imagine it getting rejected by the server but I would have expected that to be noted at the server and at the node (I think).

---

<div class="post-metadata">

**Author:** ![gbond](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gbond/32/38851_2.png) [@gbond](https://discourse.nodered.org/u/gbond)\
**Post date:** [2 March 2020 19:11 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/15 "2020-03-02T19:11:52Z")

</div>

Yes that is correct I know I tied the server down along time ago so I am guessing it is somewhere I just can't remember where

what I don't get is where do you find that you can even set the msg.from setting?  
and how it all links together is a bit confusing

---

<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:** [2 March 2020 20:33 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/16 "2020-03-02T20:33:54Z")

</div>

> [@gbond](#):
>
> where do you find that you can even set the msg.from setting?

If you click on the node then click the i tab in te right hand pane it will show you the info for the node. In there is tells you which properties it uses. For how node-red all fits together look at the [node-red docs](https://nodered.org/docs/) where you will find a lot of useful stuff. For the specific issue you raise there is a section Working With Messages in the User guide, but it would be worth looking through the whole guide.

---

<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:** [16 March 2020 20:33 UTC](https://discourse.nodered.org/t/node-red-node-email/22507/17 "2020-03-16T20:33:56Z")

</div>

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