# Sending e-mail using OAuth 2.0

**URL:** https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376
**Category:** General
**Created:** [4 March 2022 16:09 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376 "2022-03-04T16:09:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![fabnavigator](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabnavigator/32/5403_2.png) [@fabnavigator](https://discourse.nodered.org/u/fabnavigator)
#### Post date: [4 March 2022 16:09 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/1 "2022-03-04T16:09:02Z")

</div>

I'm using node-red-node-email to send e-mail, and just received this notice from Google:

```auto
On May 30, you may lose access to apps that are using less secure sign-in technology

To help keep your account secure, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. Instead, you’ll need to sign in using Sign in with Google or other more secure technologies, like OAuth 2.0. Learn more

```

I recall them saying this a couple of years ago, but they never followed through. If they do this, what do folks suggest?

---

<div class="post-metadata">

### Author: ![mharmouche](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mharmouche/32/57928_2.png) [@mharmouche](https://discourse.nodered.org/u/mharmouche)
#### Post date: [6 March 2022 04:06 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/2 "2022-03-06T04:06:23Z")

</div>

I have received the same mail!  
My plan is to use : node-red-contrib-google-oauth2.  
I did not yet succeed, but I found this video explaining the 3 steps of OAut2 with google API in general. It may help.

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/9/49544822761952e0b6d60fb9aed7c52062956838.jpeg "Let me help you understand Google OAuth with curl") ](https://www.youtube.com/watch?v=hBC_tVJIx5w)

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [6 March 2022 08:46 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/3 "2022-03-06T08:46:34Z")

</div>

This is a massive breaking change.

> [@fabnavigator](#):
>
> If they do this, what do folks suggest?

Move to another email provider.

Reading their documentation, they also have '[app passwords](https://support.google.com/accounts/answer/185833)' which are excluded from oauth2, perhaps this is a solution.

---

<div class="post-metadata">

### Author: ![fabnavigator](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabnavigator/32/5403_2.png) [@fabnavigator](https://discourse.nodered.org/u/fabnavigator)
#### Post date: [7 March 2022 22:26 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/4 "2022-03-07T22:26:02Z")

</div>

@mharmouche Thank you. I'll take a look at that.

---

<div class="post-metadata">

### Author: ![fabnavigator](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fabnavigator/32/5403_2.png) [@fabnavigator](https://discourse.nodered.org/u/fabnavigator)
#### Post date: [7 March 2022 22:27 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/5 "2022-03-07T22:27:26Z")

</div>

@bakman2 Moving to another provider was my first thought. I haven't done any research yet. Any suggestions?

---

<div class="post-metadata">

### Author: ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)
#### Post date: [2 April 2022 17:43 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/6 "2022-04-02T17:43:47Z")

</div>

A quick Google search, suggests getting a free Email account at [outlook.com](http://outlook.com)

GMX mail looks pretty good too.

My needs are simply sending short messages with a photo attachment from my AI security system to the Email to MMS gateway of our cellphone provider. The advantage of this is I don't need to teach my wife how to use anything or install something on her phone as I'd need to do with Telegram.

---

<div class="post-metadata">

### Author: ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)
#### Post date: [4 April 2022 22:23 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/7 "2022-04-04T22:23:38Z")

</div>

> [@wb666greene](#):
>
> A quick Google search, suggests getting a free Email account at [outlook.com](http://outlook.com)

Since I already have an [outlook.com](http://outlook.com) account, i tried the email node with [Outlook.com](http://Outlook.com) and it does not seem to be working?

* * *

**UPDATE** : I had a typo 🫢 in the email address and after correcting it, this does work

Here are the settings that worked:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/3945b2b9add4bf3b481fb3a853f9db440e1a34ba.jpeg)

---

<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: [3 June 2022 22:24 UTC](https://discourse.nodered.org/t/sending-e-mail-using-oauth-2-0/59376/8 "2022-06-03T22:24:24Z")

</div>

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