{"id":120668,"date":"2022-11-25T17:49:24","date_gmt":"2022-11-25T17:49:24","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=120668"},"modified":"2022-12-02T14:53:27","modified_gmt":"2022-12-02T14:53:27","slug":"node-red-send-email-notifications","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/node-red-send-email-notifications\/","title":{"rendered":"Node-RED: Send Email Notifications"},"content":{"rendered":"\n<p>This quick guide shows how to easily send emails with Node-RED. This can be a useful feature to incorporate into your home automation system for many applications. For example, to send notifications to your email if a sensor reading is above or below a certain threshold, to send readings periodically to your email, to send a notification when motion is detected, and much more.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/How-to-Send-Emails-Node-RED.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"How to Send Emails with Node-RED\" class=\"wp-image-120685\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/How-to-Send-Emails-Node-RED.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/How-to-Send-Emails-Node-RED.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/How-to-Send-Emails-Node-RED.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/How-to-Send-Emails-Node-RED.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Before proceeding you need to have Node-RED installed. You can install Node-RED locally on your computer or on a Raspberry Pi, or on a cloud server. Check the following tutorials:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/install-node-red-raspberry-pi\/\">Install Node-RED on Raspberry Pi (works on RPI OS 64-bit)<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/access-node-red-dashboard-anywhere-digital-ocean\/\">Access Node-RED Dashboard from Anywhere using Digital Ocean<\/a><\/li><\/ul>\n\n\n\n<p>For a quick Node-RED getting started guide, take a look at the following tutorials:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/getting-started-node-red-raspberry-pi\/\">Getting Started with Node-RED on Raspberry Pi<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/getting-started-node-red-dashboard\/\">Getting Started with Node-RED Dashboard on Raspberry Pi<\/a><\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">Install Email Nodes<\/h1>\n\n\n\n<p>There are Node-RED Nodes you can install that make it easy to send emails using Node-RED.<\/p>\n\n\n\n<p>Go to <strong>Menu<\/strong> &gt; <strong>Manage Palette<\/strong> &gt; <strong>Install<\/strong>. Search for <span class=\"rnthl rntliteral\">node-red-node-email<\/span> and install those nodes.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"712\" height=\"379\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-node-email.png?resize=712%2C379&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED install email Nodes\" class=\"wp-image-120670\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-node-email.png?w=712&amp;quality=100&amp;strip=all&amp;ssl=1 712w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-node-email.png?resize=300%2C160&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/figure><\/div>\n\n\n<p>For more information about the nodes, you can check the following link:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/flows.nodered.org\/node\/node-red-node-email\" target=\"_blank\" rel=\"noopener\">https:\/\/flows.nodered.org\/node\/node-red-node-email<\/a><\/li><\/ul>\n\n\n\n<p>Now, you should have the email nodes on your Node-RED palette.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"150\" height=\"184\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/email-nodes-node-red.png?resize=150%2C184&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED email nodes\" class=\"wp-image-120671\"\/><\/figure><\/div>\n\n\n<h1 class=\"wp-block-heading\">Sender Email<\/h1>\n\n\n\n<p>To send emails with Node-RED you need a sender email account. We don\u2019t recommend using your main email account to send emails using Node-RED. If something goes wrong in your flow or if by mistake you make too many requests, you can be banned or have your account temporarily disabled. So, we recommend creating a new email account to send emails or using a secondary email account.<\/p>\n\n\n\n<p>We\u2019ll use a Gmail.com account to send the emails, but you can use any other email provider. The receiver email can be your personal email without any problem.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Sender Email Account<\/h2>\n\n\n\n<p>To create a new Gmail account for sending emails with Node-RED,&nbsp;<a href=\"https:\/\/www.google.com\/gmail\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\">go to this link<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"602\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/02\/GMAIL-create-a-new-account.png?resize=940%2C602&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Gmail Create a new account\" class=\"wp-image-93593\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/02\/GMAIL-create-a-new-account.png?w=940&amp;quality=100&amp;strip=all&amp;ssl=1 940w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/02\/GMAIL-create-a-new-account.png?resize=300%2C192&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/02\/GMAIL-create-a-new-account.png?resize=768%2C492&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Create an App Password<\/h2>\n\n\n\n<p>You need to create an app password so that Node-RED can send emails using your Gmail account. An App Password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account.&nbsp;<a href=\"https:\/\/support.google.com\/accounts\/answer\/185833\" target=\"_blank\" rel=\"noreferrer noopener\">Learn more about sign-in with app passwords here<\/a>.<\/p>\n\n\n\n<p>An app password can only be used with accounts that have&nbsp;<a href=\"https:\/\/support.google.com\/accounts\/answer\/185839\" target=\"_blank\" rel=\"noopener\">2-step verification turned on<\/a>.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Open your&nbsp;<a href=\"https:\/\/myaccount.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Account<\/a>.<\/li><li>In the navigation panel, select&nbsp;<strong>Security<\/strong>.<\/li><li>Under \u201cSigning in to Google\u201d, select&nbsp;<strong>2-Step Verification<\/strong>&nbsp;&gt;&nbsp;<strong>Get started<\/strong>.<\/li><li>Follow the on-screen steps.<\/li><\/ol>\n\n\n\n<p>After enabling 2-step verification, you can create an app password.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Open your&nbsp;<a href=\"https:\/\/myaccount.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Account<\/a>.<\/li><li>In the navigation panel, select&nbsp;<strong>Security<\/strong>.<\/li><li>Under \u201cSigning in to Google\u201d, select&nbsp;<strong>App Passwords<\/strong>.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"323\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/06\/create-app-password-gmail.png?resize=724%2C323&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Create app password gmail\" class=\"wp-image-109736\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/06\/create-app-password-gmail.png?w=724&amp;quality=100&amp;strip=all&amp;ssl=1 724w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/06\/create-app-password-gmail.png?resize=300%2C134&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/figure><\/div>\n\n\n<p>In the Select app field, choose&nbsp;<strong>mail<\/strong>. For the device, select&nbsp;<strong>Other<\/strong>&nbsp;and give it a name, for example,&nbsp;Node-RED.&nbsp;Then, click on&nbsp;<strong>Generate<\/strong>. It will pop-up a window with a password that you\u2019ll use in Node-RED to send emails. <strong>Save that password<\/strong> (even though it says you won\u2019t need to remember it) because you\u2019ll need it later.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"474\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/06\/generated-app-password-gmail.png?resize=654%2C474&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Generated App password gmail\" class=\"wp-image-109742\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/06\/generated-app-password-gmail.png?w=654&amp;quality=100&amp;strip=all&amp;ssl=1 654w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/06\/generated-app-password-gmail.png?resize=300%2C217&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/figure><\/div>\n\n\n<p>Now, you should have an app password that you\u2019ll use on Node-RED to send the emails.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"329\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/Node-RED-app-password-gmail.png?resize=666%2C329&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED app password gmail\" class=\"wp-image-120672\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/Node-RED-app-password-gmail.png?w=666&amp;quality=100&amp;strip=all&amp;ssl=1 666w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/Node-RED-app-password-gmail.png?resize=300%2C148&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/figure><\/div>\n\n\n<p>If you\u2019re using a different email provider, check what you need to do to create an app password. You should be able to find the instructions with a quick google search \u201c<strong>your email provider name<\/strong>&nbsp;+ app password\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gmail SMTP Server Settings<\/h2>\n\n\n\n<p>If you\u2019re using a Gmail account, these are the SMTP Server details:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SMTP Server:&nbsp;smtp.gmail.com<\/li><li>SMTP username: Complete Gmail address<\/li><li>SMTP password: Your Gmail password<\/li><li>SMTP port (TLS):&nbsp;587<\/li><li>SMTP port (SSL):&nbsp;465<\/li><li>SMTP TLS\/SSL required:&nbsp;yes<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Outlook SMTP Server Settings<\/h2>\n\n\n\n<p>For Outlook accounts, these are the SMTP Server settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SMTP Server:&nbsp;smtp.office365.com<\/li><li>SMTP Username: Complete Outlook email address<\/li><li>SMTP Password: Your Outlook password<\/li><li>SMTP Port:&nbsp;587<\/li><li>SMTP TLS\/SSL Required:&nbsp;Yes<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Live or Hotmail SMTP Server Settings<\/h2>\n\n\n\n<p>For Live or Hotmail accounts, these are the SMTP Server settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SMTP Server:&nbsp;smtp.live.com<\/li><li>SMTP Username: Complete Live\/Hotmail email address<\/li><li>SMTP Password: Your Windows Live Hotmail password<\/li><li>SMTP Port:&nbsp;587<\/li><li>SMTP TLS\/SSL Required:&nbsp;Yes<\/li><\/ul>\n\n\n\n<p>If you\u2019re using another email provider, you need to search for its SMTP Server settings. Now, you have everything ready to start sending emails with Node-RED.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Sending an Email with Node-RED<\/h1>\n\n\n\n<p>Drag an <strong>email<\/strong> node to the flow.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"145\" height=\"66\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-node.png?resize=145%2C66&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED email node\" class=\"wp-image-120673\"\/><\/figure><\/div>\n\n\n<p>Drag an <strong>inject<\/strong> node to the flow and wire it to the email. The <strong>inject<\/strong> node will contain the email content.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"381\" height=\"58\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-flow.png?resize=381%2C58&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED email flow\" class=\"wp-image-120674\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-flow.png?w=381&amp;quality=100&amp;strip=all&amp;ssl=1 381w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-flow.png?resize=300%2C46&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 381px) 100vw, 381px\" \/><\/figure><\/div>\n\n\n<p>To learn how we must configure the message for the <strong>email<\/strong> node, we can take a look at the email node documentation. Select the <strong>email<\/strong> node and then, click on the <strong>help<\/strong> icon in the top right corner.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"30\" height=\"31\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-help-documentation-icon.png?resize=30%2C31&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED help documentation icon\" class=\"wp-image-120675\"\/><\/figure><\/div>\n\n\n<p>You\u2019ll get information about how to use the node.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"295\" height=\"471\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-nodes-documentation.png?resize=295%2C471&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"node-red email nodes documentation\" class=\"wp-image-120676\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-nodes-documentation.png?w=295&amp;quality=100&amp;strip=all&amp;ssl=1 295w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-nodes-documentation.png?resize=188%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 188w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><\/figure><\/div>\n\n\n<p>So, we must set the message content on <span class=\"rnthl rntliteral\">msg.payload<\/span> and the email subject on <span class=\"rnthl rntliteral\">msg.topic<\/span>. The recipient can be set in <span class=\"rnthl rntliteral\">msg.to<\/span> or in the email node (we\u2019ll set it in the email node).<\/p>\n\n\n\n<p>Double-click the <strong>inject<\/strong> node to edit its properties.<\/p>\n\n\n\n<p>Add the email content on <span class=\"rnthl rntliteral\">msg.payload<\/span>. You need to set it as a String. Then, add the email subject on the <span class=\"rnthl rntliteral\">msg.topic<\/span>. It also must be set as a String.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"330\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-send-email-inject-node.png?resize=555%2C330&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED send email inject node\" class=\"wp-image-120677\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-send-email-inject-node.png?w=555&amp;quality=100&amp;strip=all&amp;ssl=1 555w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-send-email-inject-node.png?resize=300%2C178&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/figure><\/div>\n\n\n<p>Now, double-click the <strong>email <\/strong>node to edit its properties. Insert the recipient email, the sender email, and the corresponding app password you generated previously.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"503\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-node-properties.png?resize=508%2C503&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED send email node\" class=\"wp-image-120678\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-node-properties.png?w=508&amp;quality=100&amp;strip=all&amp;ssl=1 508w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-node-properties.png?resize=300%2C297&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/node-red-email-node-properties.png?resize=150%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 150w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/figure><\/div>\n\n\n<p>When you\u2019re finished, click <strong>Done<\/strong>.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Testing the Flow<\/h1>\n\n\n\n<p>Now, deploy your application.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"136\" height=\"35\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Node-RED-deploy-button.png?resize=136%2C35&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED deploy button\" class=\"wp-image-111792\"\/><\/figure><\/div>\n\n\n<p>After deploying click on the left square on the <strong>inject<\/strong> node to trigger the <strong>email<\/strong> node.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"67\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/Node-RED-send-email-flow-trigger.png?resize=505%2C67&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Node-RED send email flow trigger\" class=\"wp-image-120679\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/Node-RED-send-email-flow-trigger.png?w=505&amp;quality=100&amp;strip=all&amp;ssl=1 505w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/Node-RED-send-email-flow-trigger.png?resize=300%2C40&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/figure><\/div>\n\n\n<p>If everything went as expected, you should have a new email on your recipient account.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1152\" height=\"214\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/receive-email-from-Node-RED.png?resize=1152%2C214&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Gmail receive email from Node-RED\" class=\"wp-image-120680\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/receive-email-from-Node-RED.png?w=1152&amp;quality=100&amp;strip=all&amp;ssl=1 1152w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/receive-email-from-Node-RED.png?resize=300%2C56&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/receive-email-from-Node-RED.png?resize=1024%2C190&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/receive-email-from-Node-RED.png?resize=768%2C143&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><\/figure><\/div>\n\n\n<p>That&#8217;s it! You learned an easy way to send emails with Node-RED.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>As you can see, sending emails with Node-RED is very straightforward. We showed you a simple example with an inject node. The idea is to apply this feature in real-world scenarios. We&#8217;ll publish more tutorials about this subject, so stay tuned.<\/p>\n\n\n\n<p>If you want to learn how to send emails using the ESP32 or ESP8266 boards, you can check the following tutorials instead:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-send-email-smtp-server-arduino-ide\/\">ESP32 Send Emails using an SMTP Server: HTML, Text, and Attachments (Arduino IDE)<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp8266-nodemcu-send-email-smtp-server-arduino\/\">ESP8266 NodeMCU Send Emails using an SMTP Server: HTML, Text, and Attachments (Arduino)<\/a><\/li><\/ul>\n\n\n\n<p>To learn more about Node-RED and Home Automation, take a look at our dedicated eBook in the link below. Learn Node-RED and InfluxDB on a Raspberry Pi to build a Home Automation System with the ESP32 and ESP8266.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/smart-home-ebook\/\">SMART HOME with Raspberry Pi, ESP32, and ESP8266<\/a><\/li><\/ul>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This quick guide shows how to easily send emails with Node-RED. This can be a useful feature to incorporate into your home automation system for many applications. For example, to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Node-RED: Send Email Notifications\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/node-red-send-email-notifications\/#more-120668\" aria-label=\"Read more about Node-RED: Send Email Notifications\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":120685,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[304,301],"tags":[],"class_list":["post-120668","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-0-home-automation","category-0-raspberrypi"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/11\/How-to-Send-Emails-Node-RED.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/120668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=120668"}],"version-history":[{"count":8,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/120668\/revisions"}],"predecessor-version":[{"id":122496,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/120668\/revisions\/122496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/120685"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=120668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=120668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=120668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}