Hi, yet migrating from swiftmail.
This is the configuration:
'mailer' => [
'class' => \yii\symfonymailer\Mailer::class,
'useFileTransport' => false,
'messageClass' => 'app\components\MiaMessage',
'transport' => [
'scheme' => 'smtps',
'host' => 'smtps.xxxx.xx',
'username' => 'aaaaa',
'password' => 'bbbbb',
'port' => 25,
'options' => [
'verify_peer' => 0,
],
],
'viewPath' => '@app/mail',
],
When executing the “send” command, this is the error shown:
Symfony\Component\Mailer\Exception\TransportException
Connection could not be established with host "ssl://smtps.xxxx.xx:25": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
I can’t find any solution. Can someone helps me?
Thanks
Yii 2.0.48