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 fully managed Node-RED cloud environment designed to help you build workflows quickly:

  • Integrated MQTT server (Mosquitto) for seamless IoT integration.
  • Full access to the Node-RED admin interface for managing your flows and settings.
  • Node-RED Dashboard included for real-time visualisation.
  • Dedicated SMTP email server included, with no sending limits.
  • Effortless one-click updates to keep your instance up to date.
  • Custom domain names with automatic HTTPS: for example, https://node-red.your-company.com.
  • High performance and enhanced security thanks to private, dedicated infrastructure.

You can have a secure, production-ready Node-RED cloud hosting instance running in around 5 minutes. Stackhero takes care of installation, updates, and infrastructure, so you can focus on building your automations.

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.