# Sending emails from Node Red

**URL:** https://discourse.nodered.org/t/sending-emails-from-node-red/63624
**Category:** General
**Created:** [8 June 2022 14:28 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624 "2022-06-08T14:28:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![chapeco6](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@chapeco6](https://discourse.nodered.org/u/chapeco6)
#### Post date: [8 June 2022 14:28 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624/1 "2022-06-08T14:28:21Z")

</div>

Hi! Im trying to send an email from Node Red and it shows this error in the output.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/1246c173ec1044b73569dadaf1d24e969ba2b657.png)

This is how I configured de Email node:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/56bbc57e54598dcf768af52e6e9a3142eda56243.png)

I already watch some videos on youtube and did everything exactly the same as the video but it just doesnt work.

---

<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: [8 June 2022 14:29 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624/2 "2022-06-08T14:29:52Z")

</div>

Have you tried doing a forum search using 'email gmail'? This issue comes up perodically.

---

<div class="post-metadata">

### Author: ![chapeco6](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@chapeco6](https://discourse.nodered.org/u/chapeco6)
#### Post date: [8 June 2022 14:30 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624/3 "2022-06-08T14:30:40Z")

</div>

okay I will do that

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [8 June 2022 14:31 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624/4 "2022-06-08T14:31:34Z")

</div>

The answer is: Turn on 2 factor authentication in gmail then it gives you the ability to add app passwords.

See this thread: [Gmail "Email-in" node no longer working with username&password - #5 by jbudd](https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683/5)

> [@Gmail "Email-in" node no longer working with username&password](https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683/5):
>
> In order to continue using gmail from Node-red, **you have to set up an app password**.  
> In order to set up an app password **you have to turn on 2 factor authentication** [as described here](https://www.lifewire.com/how-to-turn-on-gmail-two-factor-authentication-4707927)  
> You do need to authenticate with 2FA when you login to create an app pasword [see here](https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882) **but the app password bypasses 2FA.**

---

<div class="post-metadata">

### Author: ![LosinIt](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@LosinIt](https://discourse.nodered.org/u/LosinIt)
#### Post date: [8 June 2022 19:03 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624/5 "2022-06-08T19:03:30Z")

</div>

> [@Steve-Mcl](#):
>
> See this thread:

Thanks so much! I'd missed that post, or maybe ignored it because I didn't truly understand until yesterday when I could no longer send email.

Here's the unexpected thing, I used the app-specific p/w for postfix on one of my systems and that enabled postfix to work on ALL my systems! They must be associating the app-specific p/w with public IP address. All my systems are NATed so all use the same public IP. I have to assume at this point that the same is true for anything I have that uses [smtp.gmail.com](http://smtp.gmail.com).

---

<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: [7 August 2022 19:04 UTC](https://discourse.nodered.org/t/sending-emails-from-node-red/63624/6 "2022-08-07T19:04:00Z")

</div>

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