Post by Fred888 » Mon May 18, 2020 11:59 pm

Hi Everyone

I have recently migrated OpenCart from Lunix server to Windows Server (WAMP)
Also the mail settings have been changed from Mail to SMTP (office365.com)

My Opencart version is 2.0.2.0 and the SMTP settings are

Mail Protocol: SMTP
Mail Parameters: -finfo@domain.com
SMTP Hostname: smtp.office365.com
SMTP Username: shop@domain.com
SMTP Password: password
SMTP Port: 587
SMTP Timeout: 5

I found a strange scenario for mail function.
I always got the following errors when I register a new user. Then when I click the "back" button to register a new user again, change another email, it works fine. However when I wait for an hour and do it again. the problem has happen again.

It is an error message:
Warning: stream_socket_enable_crypto(): SSL: Handshake timed out in C:\wamp64\www\system\modification\system\library\mail.php on line 237
Notice: Error: EHLO not accepted from server! in C:\wamp64\www\system\modification\system\library\mail.php on line 254


The code on
line 237 --> stream_socket_enable_crypto($handle, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
line 253 --> if (substr($reply, 0, 3) != 250) {
line 254 --> trigger_error('Error: EHLO not accepted from server!');
line 255 --> exit();
line 256 --> }

I have no idea. How can I resolve it?

Newbie

Posts

Joined
Mon May 18, 2020 11:30 pm
Who is online

Users browsing this forum: No registered users and 11 guests