# Node-red-node-email sending emails using msg.from not working

**URL:** <https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797>\
**Category:** General\
**Created:** [4 December 2019 19:48 UTC](https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797 "2019-12-04T19:48:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoryCodes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rorycodes/32/6167_2.png) [@RoryCodes](https://discourse.nodered.org/u/RoryCodes)\
**Post date:** [4 December 2019 19:48 UTC](https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797/1 "2019-12-04T19:48:12Z")

</div>

Hello all,

I've been trying to send an email using the `node-red-node-email` node while setting the `msg.from` node in a change node. The email is sent however it shows that it is send from me (my email address currently written in the `userId` field of the email node and NOT the string I placed in `msg.from` change node. Is this even possible? If so, I would like some help please.

Thanks in advance,  
Rory

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 December 2019 21:01 UTC](https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797/2 "2019-12-04T21:01:05Z")

</div>

Please put a debug node on the output of the change node (set it to display the complete msg object) and show the results.

---

<div class="post-metadata">

**Author:** ![mikeh](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mikeh](https://discourse.nodered.org/u/mikeh)\
**Post date:** [8 July 2020 02:26 UTC](https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797/3 "2020-07-08T02:26:52Z")

</div>

@zenofmud I can confirm that this is not working, I'm having same problem.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3fc46342fdd2fe9cb9b45205b850fd137068cbf3.png)  
It still uses the id in the email node.

---

<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:** [8 July 2020 07:42 UTC](https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797/5 "2020-07-08T07:42:23Z")

</div>

This has also been posted in another thread. Closing this one.

> [@Problem with email node from](https://discourse.nodered.org/t/problem-with-email-node-from/29691):
>
> I tried to change the default userid by providing msg.from [image] But in the email I received, it's a different email address. The from became: [michael@pstpools.com](mailto:michael@pstpools.com) But X-Google-Original-From: has the correct from email address. I need the from to be the same as the one I've provided in the msg.from which is [nodered@daddybug.com](mailto:nodered@daddybug.com)

---

<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:** [8 July 2020 07:42 UTC](https://discourse.nodered.org/t/node-red-node-email-sending-emails-using-msg-from-not-working/18797/6 "2020-07-08T07:42:31Z")

</div>


