Node-RED: Receiving button pushes and sending emails
This documentation is part of the Use case: connect mailboxes guide. You can view the complete guide here: Seamlessly connect hundreds of mailboxes in a post office.
👋 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!
To manage the button actions and dispatch notifications to users, Node-RED was chosen for data processing, with a MongoDB database to store user emails.
Node-RED is a graphical programming tool developed by IBM, ideal for this kind of task. It is easy to use, powerful, and highly extensible.
Thanks to Node-RED, our customer was able to create their entire backend in just a few hours!
When a mailbox button is pressed, the message is received by Node-RED via MQTT. Node-RED then locates the corresponding user in the MongoDB database, composes a new email, and sends it.
Node-RED flow: only 5 nodes are required to create the entire backend!
When you start a Node-RED instance on Stackhero, you get an MQTT server along with a dedicated email server, enabling you to send unlimited emails!