# Gmail "Email-in" node no longer working with username&password

**URL:** <https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683>\
**Category:** General\
**Created:** [2 April 2022 12:22 UTC](https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683 "2022-04-02T12:22:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 April 2022 21:04 UTC](https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683/5 "2022-04-02T21:04:29Z")

</div>

> [@wb666greene](#):
>
> After May 30th I'll either have to figure out how to get app passwords to work, or ...

I seem to have said this over and over in recent weeks...

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.**

Make a note of the app password because Google will never let you see it again. Insert this in the Password field of the email node settings.

The Email-out node settings are like this:

 ![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46a17fccb5382f3da7efb6a6fd4a88fb4237a3d5.jpeg)

Email-in settings:

 ![Untitled 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/5/a5f1f7c960323fc40fbeea231fe187a98cda7313.jpeg)

Because 2FA is a pain in the arm, it's a good idea to create a gmail address just for Node-red to use.

One thing that tripped me up: I had NR's gmail account set up to forward messages to my real email address _and to mark the message as read_. This setting prevents NR email-in finding messages in the inbox.

---

_[View the full topic](https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683)._
