# Email sender name

**URL:** <https://discourse.nodered.org/t/email-sender-name/40442>\
**Category:** General\
**Created:** [5 February 2021 14:06 UTC](https://discourse.nodered.org/t/email-sender-name/40442 "2021-02-05T14:06:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKaiser96](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MKaiser96](https://discourse.nodered.org/u/MKaiser96)\
**Post date:** [5 February 2021 14:06 UTC](https://discourse.nodered.org/t/email-sender-name/40442/1 "2021-02-05T14:06:32Z")

</div>

Hi,

I use node-red-node-email to send emails. Is it possible to change the sender name? The emails I got has only the adress as sender. But I want to add a name there. It should looks like:

Node-RED ([xyz@gmail.com](mailto:xyz@gmail.com))

I use gmail with 2 factor authentification.

Thanks in advance  
Markus

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [5 February 2021 15:01 UTC](https://discourse.nodered.org/t/email-sender-name/40442/2 "2021-02-05T15:01:30Z")

</div>

The from property has to be valid email format.

You could try  
`Node-Red<xyz@gmail.com>` as the from address then the email client may display the name Node-Red

---

<div class="post-metadata">

**Author:** ![MKaiser96](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MKaiser96](https://discourse.nodered.org/u/MKaiser96)\
**Post date:** [5 February 2021 15:20 UTC](https://discourse.nodered.org/t/email-sender-name/40442/3 "2021-02-05T15:20:12Z")

</div>

No that doesn't work.

But I found a solution. The userid is the gmail address. I combined the the email node with a change node. I added `msg.from = Node-RED:xyz@gmail.com`. ([xyz@gmail.com](mailto:xyz@gmail.com) is your email address)

---

<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:** [6 April 2021 15:21 UTC](https://discourse.nodered.org/t/email-sender-name/40442/4 "2021-04-06T15:21:07Z")

</div>

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