Node-RED: How to send email notifications

This documentation is part of the Getting started guide. View the full guide here: How to get started with Node-RED.

Welcome to the Stackhero documentation

Stackhero provides a fully managed Node-RED cloud environment designed to get you building workflows quickly:

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

You can have a secure, production-ready Node-RED cloud hosting instance running in about 5 minutes. Stackhero handles setup, updates, and infrastructure so you can focus on building automations.

Each Node-RED instance on Stackhero comes with its own dedicated email server. This server lets you send unlimited email notifications with just a few clicks.

To begin 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.