# After Node Red restart all email-send nodes not connected

**URL:** <https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671>\
**Category:** Dashboard\
**Created:** [16 January 2025 07:20 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671 "2025-01-16T07:20:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 07:20 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/1 "2025-01-16T07:20:02Z")

</div>

Hello,

does anyone have the same problem? How do you solve it?

The following:

We have configured some flows that work perfectly. Notifications via mail/mail2SMS also work.

However, if the computer is restarted and Node Red is restarted, all email-send nodes are disconnected. Message in Node Red:

[error] [email-send:9b9e827895d66596] Error: Invalid greeting...

too many connections from [ext.IP].

I asked the mail provider. They only allow 3 simultaneous connections to prevent misuse.

My complicated solution: I deactivate all email-send nodes and activate them again. Does anyone have a better solution? Thanks

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2025 07:44 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/2 "2025-01-16T07:44:32Z")

</div>

Try sending all emails through one email node. Use Link nodes to send the messages to the email flow.

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 08:09 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/3 "2025-01-16T08:09:01Z")

</div>

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?

 ![Screenshot 2025-01-16 090546](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5e1b2f3da62f6567a13ec6a76a704a1b518d9742.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2025 08:26 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/4 "2025-01-16T08:26:27Z")

</div>

Send them to one email node. You can set the recipient in the message to the email node.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 January 2025 08:38 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/5 "2025-01-16T08:38:50Z")

</div>

What node is that?

As far as I remember, `node-red-node-email` does not actually make a connection to the email server until it receives a message on its input.

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 08:45 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/6 "2025-01-16T08:45:10Z")

</div>

node-red-contrib-email

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2025 08:53 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/7 "2025-01-16T08:53:15Z")

</div>

Is there a reason that you are using that node rather than the node-red core supported node? If not then use the standard node.

However, even in that node, according to the docs, the recipient can be set in the message, so you should be able to use just one email node.

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 09:12 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/8 "2025-01-16T09:12:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 09:40 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/9 "2025-01-16T09:40:00Z")

</div>

Hey Colin,

I can use a change node to generate a text and a topic (see screenshot)  
How can the recipient be configured here?

 ![Screenshot 2025-01-16 103930](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c9cfbe027b578e7b348ae16a6cde23e8dd2611d.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2025 09:41 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/10 "2025-01-16T09:41:50Z")

</div>

> [@Kralle](#):
>
> But I still don't understand how you can create a link (Link Out??) from all flows

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.

> [@Kralle](#):
>
> How can I configure the individual recipients in all flows?

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.

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 10:08 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/11 "2025-01-16T10:08:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [16 January 2025 10:52 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/12 "2025-01-16T10:52:47Z")

</div>

You are not limited to setting msg.topic and msg.payload in the change node.  
You can add as many message properties as you like, including msg.to.

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [16 January 2025 11:10 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/13 "2025-01-16T11:10:40Z")

</div>

hi jbudd,

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.

 ![Screenshot 2025-01-16 120051](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d76c4b1addd84efea04e6e1163372982ed3063e7.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [16 January 2025 11:30 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/14 "2025-01-16T11:30:05Z")

</div>

The dropdown offers you suggestions not the only available options.

Just type in "to" and ignore the dropdown.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 January 2025 11:30 UTC](https://discourse.nodered.org/t/after-node-red-restart-all-email-send-nodes-not-connected/94671/15 "2025-01-30T11:30:23Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
