# Sending Simple Text Email with Node-Red

**URL:** https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179
**Category:** General
**Created:** [31 August 2022 13:22 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179 "2022-08-31T13:22:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![HansZnarf](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hansznarf/32/70215_2.png) [@HansZnarf](https://discourse.nodered.org/u/HansZnarf)
#### Post date: [31 August 2022 13:22 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/1 "2022-08-31T13:22:47Z")

</div>

Tried to follow directions with simple instructions and view a few YouTube email. Set up simple Inject Node with a text payload. When activated the email node shows send failed. Have outgoing email in place and using a known gmail account as sender. Any other ideas.

---

<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: [31 August 2022 13:35 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/2 "2022-08-31T13:35:06Z")

</div>

Use a Catch node to catch the error in the email node and see what it says.

---

<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: [31 August 2022 13:39 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/3 "2022-08-31T13:39:26Z")

</div>

Maybe this? [https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683/5](https://discourse.nodered.org/t/gmail-email-in-node-no-longer-working-with-username-password/60683/5)

---

<div class="post-metadata">

### Author: ![HansZnarf](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hansznarf/32/70215_2.png) [@HansZnarf](https://discourse.nodered.org/u/HansZnarf)
#### Post date: [31 August 2022 14:39 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/4 "2022-08-31T14:39:07Z")

</div>

Debug shows this: Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at  
535 5.7.8 [Check Gmail through other email platforms - Gmail Help](https://support.google.com/mail/?p=BadCredentials) l11-20020a0566022dcb00b006896f36afecsm7582536iow.15 - gsmtp

Checked my log in and password. Both are correct.

---

<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: [31 August 2022 14:41 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/5 "2022-08-31T14:41:31Z")

</div>

I believe that @jbudd has pointed you to a possible solution.

---

<div class="post-metadata">

### Author: ![sahsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sahsha/32/43845_2.png) [@sahsha](https://discourse.nodered.org/u/sahsha)
#### Post date: [5 September 2022 12:32 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/6 "2022-09-05T12:32:13Z")

</div>

For Gmail you need to generate app password and use that instead of gmail password. Refer below link.

> **[Sign in with App Passwords - Google Account Help](https://support.google.com/accounts/answer/185833?hl=en)**
>
> Tip: App Passwords aren’t recommended and are unnecessary in most cases. To help keep your account secure, use "Sign in with Google" to connect apps to your Google Account. 
> An App Password is

---

<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: [4 November 2022 12:32 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179/7 "2022-11-04T12:32:49Z")

</div>

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