# Could not open socket with SMTP mail Server

**URL:** <https://discourse.laminas.dev/t/could-not-open-socket-with-smtp-mail-server/302>\
**Category:** Components & MVC\
**Created:** [September 27, 2017, 12:55pm UTC](https://discourse.laminas.dev/t/could-not-open-socket-with-smtp-mail-server/302 "2017-09-27T12:55:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_Kartoot](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@Mister\_Kartoot](https://discourse.laminas.dev/u/Mister_Kartoot)\
**Post date:** [September 27, 2017, 12:55pm UTC](https://discourse.laminas.dev/t/could-not-open-socket-with-smtp-mail-server/302/1 "2017-09-27T12:55:48Z")

</div>

Magento uses zend mail to send emails. What is happening is why I try to send mail from magento it gives “Could not open socket”. I guess the error is something related to zend and not to Magento. I have created the SMTP server using node smtp-server. Can I get possible reasons and solutions for it?

---

<div class="post-metadata">

**Author:** ![harikt](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/harikt/32/47_2.png) [@harikt](https://discourse.laminas.dev/u/harikt)\
**Post date:** [September 28, 2017, 4:17am UTC](https://discourse.laminas.dev/t/could-not-open-socket-with-smtp-mail-server/302/2 "2017-09-28T04:17:25Z")

</div>

Did you tried this solution : [https://stackoverflow.com/a/28436702/487878](https://stackoverflow.com/a/28436702/487878) .

Another way is trying to connect via telnet and see if there is no firewall blocking etc.
