Sorry, I don't understand. At the moment I have about 10 flows with dozens of devices that send notifications to different recipients. (see screenshot)
What is your solution?
Do you have an example for me? But I still don't understand how you can create a link (Link Out??) from all flows and then create a separate flow (Link In from all flows and then send it via node-red-node-email. Is that correct? How can I configure the individual recipients in all flows?
Basically MQTT - reading the data - notification with text and recipient - Link out
Next flow: Link-In -Send Mail with node-red-node-email.
Add a Link out node on the tab you want to send the message from, give it a meaningful name. Add a Link In node on the new tab and link it to the Link Out. Connect the Link In to the email node.
See the docs for node-red-node-email:
The default message recipient can be configured in the node, if it is left blank it should be set using the msg.to property of the incoming message. If left blank you can also specify any or all of: msg.cc , msg.bcc , msg.replyTo , msg.inReplyTo , msg.references , msg.headers , or msg.priority properties.
Set msg.to in the change node. If you want to use the other email node then look at its docs.
I understand that. So I have a separate tab with link in and email node. So far so good. But I have different recipients.
Flow 1 passes via link out to a separate tab after link in and then to the email node.
Flow 2 is the same scenario
Flow 3 and so on
Where is the recipient defined? That can't happen in the email node because I have about 25 different recipients but only 1 email node. The msg.cc and msg.bcc functions don't interest me.
I tried that in the change node. msg.to is not displayed at all (see screenshot).Only topic, tofront and responseTopic. But if I can still do it like that and use msg.cc here too
and under to the value: a/z [email address] then it's not a problem. Then I understand it now. Then I can really solve the problem with Link IN/OUT. Thanks. Feedback will follow if it works.