I have am using an SMTP mail server. When I register a new user, I recieve the following error message:
An error occurred
Could not open socket
Additional information:
Zend\Mail\Protocol\Exception\RuntimeException
File:
C:\wamp\www\zendtest\vendor\zendframework\zend-mail\src\Protocol\AbstractProtocol.php:209
Message:
Could not open socket
Code
<?php
return array(
'mail' => array(
'transport' => array(
'options' => array(
'host' => 'smtp.gmail.com',
'connection_class' => 'login',
'port' => '465',
'connection_config' => array(
'username' => 'varinderkumar.dx@gmail.com',
'password' => '********',
'ssl' => 'ssl'
) ,
) ,
) ,
) ,
);
?>
What should I do?