# Send email error: ECCONREFUSED

**URL:** <https://discourse.nodered.org/t/send-email-error-ecconrefused/13075>\
**Category:** General\
**Created:** [9 July 2019 13:38 UTC](https://discourse.nodered.org/t/send-email-error-ecconrefused/13075 "2019-07-09T13:38:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FerranA](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FerranA](https://discourse.nodered.org/u/FerranA)\
**Post date:** [9 July 2019 13:38 UTC](https://discourse.nodered.org/t/send-email-error-ecconrefused/13075/1 "2019-07-09T13:38:46Z")

</div>

Hello everybody,  
I am trying to send an email but it gives me an error. I have tried the following possible solutions:

- Different accounts
- Changing the password (I read somwhere that if it's longer than 8 character could give you errors...)
- Changing the port (465 or 587) for Gmail.
- Activate non secure applications permission on Gmail
- Activate POP/IMAP options

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/020f7c4a2e518486d36bf8b174740bbb10f825c6.jpeg) ![Capture2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/ebff7e0c3e67e987c247c3aa016998d4f33ff692.jpeg)

I have read that the problem could be because of the firewall, also...

What else can I do?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 July 2019 15:13 UTC](https://discourse.nodered.org/t/send-email-error-ecconrefused/13075/2 "2019-07-09T15:13:47Z")

</div>

You probably need to use an application password for gmail - see their docs here - [https://support.google.com/mail/answer/185833?hl=en](https://support.google.com/mail/answer/185833?hl=en)

---

<div class="post-metadata">

**Author:** ![FerranA](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FerranA](https://discourse.nodered.org/u/FerranA)\
**Post date:** [10 July 2019 06:33 UTC](https://discourse.nodered.org/t/send-email-error-ecconrefused/13075/3 "2019-07-10T06:33:26Z")

</div>

I am able to receive and read emails through Node Red from the same gmail account. I don't think the problem is on the password.

The error ECCONREFUSED, refers only about the password?  
Could be something about firewall?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Post date:** [10 July 2019 10:29 UTC](https://discourse.nodered.org/t/send-email-error-ecconrefused/13075/4 "2019-07-10T10:29:31Z")

</div>

I use the email node 1.3.0 and do not have any issues, although my configuration options are slightly different ..

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/88720a5a1f99291c426b8ea3df7edc6673c495e6.jpeg)

.. looking in the pallete there does seem to be a new version released 1.6.2 , ( which i’m not using ) so that could be related, if you’re on the latest one.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e729d8727eecbe91def88935c2b2121aa6d65159.jpeg)

---

<div class="post-metadata">

**Author:** ![FerranA](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@FerranA](https://discourse.nodered.org/u/FerranA)\
**Post date:** [12 July 2019 11:39 UTC](https://discourse.nodered.org/t/send-email-error-ecconrefused/13075/5 "2019-07-12T11:39:32Z")

</div>

SOLVED.

I tried to upgrade Node-Red to the last version and the install the email library (since up to 0.19 you have to do it manually). The problem was to upgrade the **node-js** version. I was not able to get v.8. I got error all time

Finally I installed `node-red-contrib-email-out` and now I'm able to send and receive email through Gmail and also Outlook 365. In both cases I'm using port 25 and the option "Secure connection" not checked.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/542ff9f8b3fd2eb245b65c39bb18a30cf7d8ba0b.png)
