Announcement
Collapse
No announcement yet.
Erro 500: Could not open socket: stream_socket_client(): (Connection refused)
Collapse
X
-
I had the same problem and the solution was to open the outbound port (993) in the server that hosts EspoCRM
-
Hello, I managed to solve the problem by replacing the SMTP address (mail.mydomain.com.br) with LOCALHOST. That is, instead of putting the full address, I just put localhost and it worked.
- Likes 2
Leave a comment:
-
Hi,
I've tried everything, changed ports, changed emails, private and public, but I hadn't tried this PHP option. I'll check
Leave a comment:
-
I did a quick search and this error is related to PHP. Have a look at your PHP extension, try see if there a Zend option? Or try changing your PHP Version.
Or could ask your Host support to see know how to fix "Could not open socket: stream_socket_client()" error.
Have you tried any other email yet? Try using more common public email for testing first (e.g. Hotmail, Live, Outlook, Gmail, Yahoo, etc)
Leave a comment:
-
the same message occurs for both port 465 and port 25. I suspect it is something of the application. Other tools I use at the provider, I use the same settings and this error does not occur.
Leave a comment:
-
No, I think he is talking about changing your SMTP configs in EspoCRM. Change Security to 'SSL' and Port to '465' and try to compose an email or send the test email.
- Likes 1
Leave a comment:
-
I see it is port 587 (Porta). Maybe try Port 465 as your email might be SSL, or temporary do a test with Port 25
Leave a comment:
-
Following information:
[2020-03-05 16:54:56] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 16:55:08] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:09:13] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:14:28] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:14:38] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:14:50] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/pusername/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:15:01] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:15:12] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:19:38] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:24:24] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
[2020-03-05 17:31:07] Espo.ERROR: (500) Could not open socket: stream_socket_client(): unable to connect to tcp://mydomain.com.br:587 (Connection refused); POST /espo/api/v1/Email/action/sendTestEmail; line: 416, file: /home/username/public_html/espo/application/Espo/Core/Mail/Sender.php [] []
1 Photo
Leave a comment:
-
Hi,
provide please a screenshot with your email SMTP configs. Also, provide the error description from a log file located in the /data/logs directory.
Leave a comment:
-
Erro 500: Could not open socket: stream_socket_client(): (Connection refused)
Hello,
When setting up the email service and trying to send a test message, the following error appears:
Erro 500: Could not open socket: stream_socket_client(): unable to connect tcp://mail.pascoalmoretti.com.br:587 (Connection refused)
For other applications on the same server I have no problems, only for ESPOCRM
Do you know how to inform me if I need to configure a file or something?
Sorry English, I'm using google translator1 PhotoTags: None
Leave a comment: