# Error: Unexpected socket close using node-red-node-email

**URL:** <https://discourse.nodered.org/t/error-unexpected-socket-close-using-node-red-node-email/17804>\
**Category:** General\
**Created:** [11 November 2019 17:48 UTC](https://discourse.nodered.org/t/error-unexpected-socket-close-using-node-red-node-email/17804 "2019-11-11T17:48:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollischulze67](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@rollischulze67](https://discourse.nodered.org/u/rollischulze67)\
**Post date:** [11 November 2019 17:48 UTC](https://discourse.nodered.org/t/error-unexpected-socket-close-using-node-red-node-email/17804/1 "2019-11-11T17:48:39Z")

</div>

I get "Error: Unexpected socket close" when using the email send node in the node-red-node-email package. I tried different email-adresses ([web.de](http://web.de) and [yahoo.com](http://yahoo.com)) with POP3 and IMAP. Node subtitle in Node RED says "sending..." but then cancels with the above error message. Thanks for any help.

---

<div class="post-metadata">

**Author:** ![sparky56](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sparky56/32/16611_2.png) [@sparky56](https://discourse.nodered.org/u/sparky56)\
**Post date:** [31 January 2020 03:31 UTC](https://discourse.nodered.org/t/error-unexpected-socket-close-using-node-red-node-email/17804/2 "2020-01-31T03:31:39Z")

</div>

I getting the same error "Error: Unexpected socket close"  
I'm trying to set up email to myself. I'm using gmail without 2 factor id.

Does anyone have any ideas or solutions?
