# Gmail and node-red-node-email

**URL:** https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691
**Category:** General
**Created:** [28 April 2020 16:30 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691 "2020-04-28T16:30:15Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![hammeronthenet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hammeronthenet/32/29102_2.png) [@hammeronthenet](https://discourse.nodered.org/u/hammeronthenet)
#### Post date: [28 April 2020 16:30 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/1 "2020-04-28T16:30:15Z")

</div>

Hi guys,  
I'm wondering to send an email through via gmail (gsuite)

I tried various approach, and now I've got double authentication factor and an application password.  
Nothing.

I tried from admin console to enable smtp-relay for domain users but nothing to do... the strange thing is that if I put my real account password relay tells me to check with an application password. But when I try with these last one it responds "Username and Password not acccepted".

Someone here use gmail with nodered?

Tnx in advance!

---

<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: [28 April 2020 16:59 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/2 "2020-04-28T16:59:32Z")

</div>

I've done only one of these. It sends a SMS message to my phone via gmail. I had to try several different combinations of settings before I hit upon this one. I won't be able to help beyond this but I hope it works for you.  
 ![email](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/389ac07f1ccf094539c3436d76f6022d783fc12c.jpeg)

---

<div class="post-metadata">

### Author: ![hammeronthenet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hammeronthenet/32/29102_2.png) [@hammeronthenet](https://discourse.nodered.org/u/hammeronthenet)
#### Post date: [28 April 2020 19:45 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/3 "2020-04-28T19:45:35Z")

</div>

Hi Losinit,  
first of all thank you for your post but I tried the same thing without success.

Now the questione imho is not how to setting the node but how to setting google.

At the moment I have checked and activated double factor auth and I have created an application password. Google documentation says that's sufficient to login but imho (also if the documentation specifies the opposite) I will have also to set lower security. It's my last chance I think. I understand security but it's incredible that in 2020 we had to have this kind of troubles to... send an email!

---

<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: [29 April 2020 02:20 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/4 "2020-04-29T02:20:52Z")

</div>

I don't use 2FA, just a password.

---

<div class="post-metadata">

### Author: ![hammeronthenet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hammeronthenet/32/29102_2.png) [@hammeronthenet](https://discourse.nodered.org/u/hammeronthenet)
#### Post date: [29 April 2020 07:05 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/5 "2020-04-29T07:05:42Z")

</div>

Did you set less security on you google account?

---

<div class="post-metadata">

### Author: ![anonuknow](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@anonuknow](https://discourse.nodered.org/u/anonuknow)
#### Post date: [29 April 2020 07:38 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/6 "2020-04-29T07:38:03Z")

</div>

I used another mail provider so i don't need to chant google spells for 1 email.  
I think it's the fact that google uses that mail and passwords across multiple services some which have very confidential info linked to it.

---

<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: [29 April 2020 08:56 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/7 "2020-04-29T08:56:16Z")

</div>

I use 2FA - but it's the application password you need.  
and server config like

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/f/af9af61c45c8d6249a1a17400eccda378b59071e.png)  
and no TLS

---

<div class="post-metadata">

### Author: ![hammeronthenet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hammeronthenet/32/29102_2.png) [@hammeronthenet](https://discourse.nodered.org/u/hammeronthenet)
#### Post date: [29 April 2020 09:38 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/8 "2020-04-29T09:38:33Z")

</div>

I solved enabling from administration console the "possibility" for the single user to enable less security.

Please note: when I connect to my gmail account at

[https://myaccount.google.com/lesssecureapps](https://myaccount.google.com/lesssecureapps)

Google says me that with 2FA I can't set less secure apps... but now my email from NodeRed works!

That's very strange!

---

<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: [29 April 2020 14:04 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/9 "2020-04-29T14:04:06Z")

</div>

> [@hammeronthenet](#):
>
> Did you set less security on you google account?

I've had the account since before 2FA was a thing and I've stayed with password authentication.

---

<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: [28 June 2020 14:04 UTC](https://discourse.nodered.org/t/gmail-and-node-red-node-email/25691/10 "2020-06-28T14:04:10Z")

</div>

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