# Node Red Mail Node not storing log in credentials

**URL:** <https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318>\
**Category:** General\
**Created:** [4 October 2019 13:04 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318 "2019-10-04T13:04:57Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avipur](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Avipur](https://discourse.nodered.org/u/Avipur)\
**Post date:** [4 October 2019 13:04 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/1 "2019-10-04T13:04:57Z")

</div>

Hello ,

I am beginner in Node Red. I am trying to set mail from mail node. I am using gmail credentials. The node settings are as follows

To [xyz@gmail.com](mailto:xyz@gmail.com)

Server smtp:gmail.com  
Port 465

Secure connection ticked

User Id [abc@gmail.com](mailto:abc@gmail.com)  
Password: 8 character mixed case

When I deploy this node I find that my login credentials are blanked out. And the mail does not get sent with a error message in debug screen.

I tried many times, but could not send the mail. Is there a bug in the mail node?

Please help.

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [4 October 2019 13:09 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/2 "2019-10-04T13:09:48Z")

</div>

> [@Node-red email node and gmail](https://discourse.nodered.org/t/node-red-email-node-and-gmail/8238/5):
>
> Found this: [https://serverfault.com/questions/635139/how-to-fix-send-mail-authorization-failed-534-5-7-14](https://serverfault.com/questions/635139/how-to-fix-send-mail-authorization-failed-534-5-7-14) Doesn't look like a problem specific to Node-RED, more of a Gmail security thing.

---

<div class="post-metadata">

**Author:** ![Avipur](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Avipur](https://discourse.nodered.org/u/Avipur)\
**Post date:** [4 October 2019 13:16 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/3 "2019-10-04T13:16:27Z")

</div>

Thanks I will check and revert back

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [4 October 2019 13:24 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/4 "2019-10-04T13:24:08Z")

</div>

> [@Avipur](#):
>
> with a error message in debug screen

Always worth actually tell us what the error message is...

Have you also followed the instructions for gmail in the Email nodes ReadMe?

> **[node-red-node-email](https://flows.nodered.org/node/node-red-node-email)**
>
> Node-RED nodes to send and receive simple emails.

---

<div class="post-metadata">

**Author:** ![marciocaster](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marciocaster](https://discourse.nodered.org/u/marciocaster)\
**Post date:** [9 April 2021 21:38 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/5 "2021-04-09T21:38:19Z")

</div>

Hello! Im having the same error. I previously had everything running on a Raspberry Pi with version 1.8.2. Now I am changing the RPi for a server and I installed the same node but version 1.11.0.

I have my gmail set to less secure apps already but still the node doesn't save the credentials.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 April 2021 08:06 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/6 "2021-04-10T08:06:20Z")

</div>

> [@marciocaster](#):
>
> I installed the same node but version 1.11.0

Which node is that? node-red-node-email current version is 1.8.3.

Can you show a screenshot showing where you are entering the credentials and another after they are lost. You can paste images directly in here.

---

<div class="post-metadata">

**Author:** ![marciocaster](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marciocaster](https://discourse.nodered.org/u/marciocaster)\
**Post date:** [10 April 2021 14:39 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/7 "2021-04-10T14:39:27Z")

</div>

Thanks for your answer...

This is the image before deploying

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2aa9f6355e8e38c7562e96e60c02ed62a1d048cf.png)

This one is after deploying

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6f800fdea50259ab63b8e05027b6e0845751adf.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![marciocaster](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marciocaster](https://discourse.nodered.org/u/marciocaster)\
**Post date:** [10 April 2021 14:40 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/8 "2021-04-10T14:40:22Z")

</div>

And this is the node-red-node-email version (I was able to instert only 2 images)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/ebd3a1aee14d08c0d0af2e2e54f70f76ff60e858.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 April 2021 15:03 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/9 "2021-04-10T15:03:57Z")

</div>

Oh, you are right about the version. I wonder why mine is not offering an upgrade. That is a different issue for me to worry about though.

Can you stop node red and start it again in a terminal and paste the log here please, that will tell us about your environment. Copy/paste please not screenshot. When you paste it in use the `</>` button at the top of the forum entry field and paste it in.

---

<div class="post-metadata">

**Author:** ![marciocaster](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marciocaster](https://discourse.nodered.org/u/marciocaster)\
**Post date:** [10 April 2021 15:21 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/10 "2021-04-10T15:21:34Z")

</div>

```auto
cfr@automatizacion:~$ node-red
10 Apr 02:22:35 - [info]

Welcome to Node-RED
===================

10 Apr 02:22:35 - [info] Node-RED version: v1.3.1
10 Apr 02:22:35 - [info] Node.js version: v10.24.0
10 Apr 02:22:35 - [info] Linux 4.19.0-16-amd64 x64 LE
10 Apr 02:22:35 - [info] Loading palette nodes
10 Apr 02:22:36 - [info] Dashboard version 2.28.2 started at /ui
10 Apr 02:22:36 - [info] Settings file : /home/cfr/.node-red/settings.js
10 Apr 02:22:36 - [info] Context store : 'default' [module=memory]
10 Apr 02:22:36 - [info] User directory : /home/cfr/.node-red
10 Apr 02:22:36 - [warn] Projects disabled : editorTheme.projects.enabled=false
10 Apr 02:22:36 - [info] Flows file : /home/cfr/.node-red/flows_automatizacion.json

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 April 2021 15:38 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/11 "2021-04-10T15:38:17Z")

</div>

How do you normally run node-red?

What does this show  
`ls -al /home/cfr/.node-red`  
Is everything owned by cfr as it should be?

---

<div class="post-metadata">

**Author:** ![marciocaster](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marciocaster](https://discourse.nodered.org/u/marciocaster)\
**Post date:** [12 April 2021 15:03 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/12 "2021-04-12T15:03:08Z")

</div>

> [@Colin](#):
>
> ls -al /home/cfr/.node-red

Normally I only type "node-red" on the terminal and have it configured to start on boot.

It shows this:

```auto
cfr@automatizacion:~$ ls -al /home/cfr/.node-red
total 384
drwxr-xr-x 5 cfr cfr 4096 Apr 10 11:59 .
drwxr-xr-x 20 cfr cfr 4096 Apr 10 09:13 ..
-rw-r--r-- 1 cfr cfr 34550 Apr 10 11:22 .config.nodes.json
-rw-r--r-- 1 cfr cfr 33925 Apr 10 11:22 .config.nodes.json.backup
-rw-r--r-- 1 cfr cfr 95 Apr 8 15:02 .config.runtime.json
-rw-r--r-- 1 cfr cfr 420 Apr 10 08:28 .config.users.json
-rw-r--r-- 1 cfr cfr 333 Apr 10 08:28 .config.users.json.backup
-rw-r--r-- 1 cfr cfr 268 Apr 10 11:37 flows_automatizacion_cred.json
-rw-r--r-- 1 cfr cfr 156 Apr 10 11:37 .flows_automatizacion_cred.json.backup
-rw-r--r-- 1 cfr cfr 94121 Apr 10 11:59 flows_automatizacion.json
-rw-r--r-- 1 cfr cfr 94121 Apr 10 11:59 .flows_automatizacion.json.backup
drwxr-xr-x 2 cfr cfr 4096 Apr 9 10:12 hourglass
drwxr-xr-x 3 cfr cfr 4096 Apr 8 15:02 lib
drwxr-xr-x 130 cfr cfr 4096 Apr 10 11:22 node_modules
-rw-r--r-- 1 cfr cfr 714 Apr 10 11:22 package.json
-rw-r--r-- 1 cfr cfr 69394 Apr 10 11:22 package-lock.json
-rw-r--r-- 1 cfr cfr 15489 Apr 8 15:02 settings.js

```

---

<div class="post-metadata">

**Author:** ![marciocaster](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@marciocaster](https://discourse.nodered.org/u/marciocaster)\
**Post date:** [12 April 2021 21:36 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/13 "2021-04-12T21:36:56Z")

</div>

For a strange reason it seems to be a browser issue.

Normally I use Chrome and works fine with the raspberry.

On this server on Chrome only loads the dashboard,but not the editor. It gets stuck on the "loading plugins" screen. So I had to work on the Internet Explorer.

What seemed to be strange is that I also got a node-red-contrib-ui-lednode error. It appeared to be missing, but it was installed and leds were displaying properly on Chrome. So I decided to give Firefox a try and everything is working perfectly! It saves the email credentials and leds work normally on dashboard and editor.

The wierd thing is that the raspberry's node red works perfectly on chrome, but not the server's node red.

---

<div class="post-metadata">

**Author:** ![rrabbit454](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rrabbit454/32/74694_2.png) [@rrabbit454](https://discourse.nodered.org/u/rrabbit454)\
**Post date:** [18 April 2021 10:03 UTC](https://discourse.nodered.org/t/node-red-mail-node-not-storing-log-in-credentials/16318/14 "2021-04-18T10:03:37Z")

</div>

It's my first post here so Hello everybody.  
I recommend to watch this tutorial:  
[(827) How to Send Emails with Node-RED Using groov RIO - YouTube](https://www.youtube.com/watch?v=GPL8YiDJmNI&list=PLKYvTRORAnx6a9tETvF95o35mykuysuOw&index=13)  
Then go back to your Google account security settings and confirm You done all security changes (allowing less secure apps, adding the passswords).  
In my case that help and all up and running 😀  
And please give for Opto more likes, he done a great job.  
Regards Raf.
