0

In the previous topic : Magento 2 smtp could not open socket

1: Magento 2 smtp could not open socket by akshay billore

I encounter the same issue ,and i tried to do the same solution provided by Dhiren Vasoya.

which is adding code to magento 's abstract.php.but i issue did not resolve and it gives me

(Could not open socket: stream_socket_client(): unable to connect to tcp://email-smtp.us-east-1.amazonaws.com:587 (Connection timed out) )

enter image description here

I also tried on gmail smtp using ssl socket as configuration,doesnt work.

Would it be magento version? because i m using 2.3.1,or something else is missing? like openssl configuration?

My openssl:enter image description here

  • did you try below solution ? – Savan Patel Apr 20 at 8:52
  • yes ,check the image above. – Ed Tan Apr 20 at 17:13
0

need to try this.

open this file : vendor\magento\zendframework1\library\Zend\Mail\Protocol\Abstract.php

arround line no 267.

$this->_socket = @stream_socket_client($remote, $errorNum, $errorStr, self::TIMEOUT_CONNECTION);

comment above line

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.