# ECONNRESET error when sending an email

**URL:** <https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218>\
**Category:** General\
**Created:** [1 August 2023 13:14 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218 "2023-08-01T13:14:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesmar96](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@lesmar96](https://discourse.nodered.org/u/lesmar96)\
**Post date:** [1 August 2023 13:14 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218/1 "2023-08-01T13:14:43Z")

</div>

We have a NodeRed instance that emails a daily report at midnight. The emails are handled by SMTP2GO. We have Node-Red set up so that if it is unable to successfully send, that it retries in 1 hours.

Last night, when it sent the report at midnight, node-red immediately logged a ECONNRESET error. Node-red obviously did not think that it was a successful send, because it resent the report at 1:00AM. But in fact, we received both reports.

I take it that the ECONNRESET error would be triggered by the email server dropping the connection? Is there anything we should check into or is just a freak?

There are no errors on the SMTP2GO logs. It shows all emails delivered successfully.

---

<div class="post-metadata">

**Author:** ![lesmar96](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@lesmar96](https://discourse.nodered.org/u/lesmar96)\
**Post date:** [2 August 2023 14:10 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218/2 "2023-08-02T14:10:19Z")

</div>

Can someone clarify what ECONNRESET means?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [2 August 2023 15:13 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218/3 "2023-08-02T15:13:13Z")

</div>

You could search for it

> **[ECONNRESET error meaning at DuckDuckGo](https://duckduckgo.com/?q=ECONNRESET%2Berror%2Bmeaning&ia=qa)**
>
> DuckDuckGo. Privacy, Simplified.

---

<div class="post-metadata">

**Author:** ![lesmar96](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@lesmar96](https://discourse.nodered.org/u/lesmar96)\
**Post date:** [3 August 2023 10:31 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218/4 "2023-08-03T10:31:10Z")

</div>

Thanks, @E1cid , though I had already done that.

I am not an expert so I was hoping for someone to clarify what I had read.

I read this:

> _" **ECONNRESET**"_ means the other side of the TCP conversation abruptly closed its end of the connection

I expect this means that for some reason NodeRed thought that SMTP2GO rejected the request, when, in truth, SMTP2GO handled successfully. How do I know why NodeRed would throw this error, when SMTP2GO did not reject the request? I still suspect a random glitch, rather than a configuration problem because it works the vast majority of times, but I would appreciate an expert's confirmation.

We have the Catch node monitoring for errors. Should we be using something that gives more detail?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [3 August 2023 16:16 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218/5 "2023-08-03T16:16:13Z")

</div>

Could d be a myriad of reasons, but most likely you internet became unstable for a brief period. As you are doing monitor it with a catch node.

---

<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:** [2 October 2023 16:16 UTC](https://discourse.nodered.org/t/econnreset-error-when-sending-an-email/80218/6 "2023-10-02T16:16:28Z")

</div>

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