Node-RED: How to Send Email Notifications
This documentation is part of the Getting Started guide. You can view the complete guide here: How to Get Started with Node-RED.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Node-RED cloud solution that provides a host of benefits, including:
- MQTT server included (Mosquitto).
- Full access to Node-RED admin UI.
- Node-RED Dashboard included.
- Unlimited and dedicated SMTP email server included.
- Effortless updates with just a click.
- Customisable domain name secured with HTTPS (for example, https://node-red.your-company.com).
- Optimal performance and robust security powered by a private and dedicated VM.
Save time and simplify your life: it only takes 5 minutes to try Stackhero's Node-RED cloud hosting solution!
Each Node-RED instance on Stackhero comes with its own dedicated email server. This server allows you to send unlimited email notifications with just a few clicks.
To start sending emails from your Node-RED instance, add an "email" node to your flow. You will notice two email nodes in the nodes list. Choose the one with the mail icon on the right. Once added, the node will automatically be named "Stackhero integrated email server" and comes pre-configured.
Double-click the email node and enter your email address in the "To:" field. It is best to leave the rest of the settings unchanged.
Next, add an "inject" node to your flow and connect it to the email node. Double-click the inject node (named "timestamp" by default), select "string" as the payload type, and enter "This is an email from Node-RED" as the payload.
Review your node configurations, deploy your flow, and click the action icon on the inject node. Then check your email inbox to view the email sent from Node-RED!
Tip: You can send emails to multiple recipients by separating each email with a semi-colon in the "To:" field.