Answer the question
In order to leave comments, you need to log in
Swiftmailer yii2 can't send mail from server other than gmail, can't figure out why?
When sending mail from gmail, everything works fine, as soon as I apply the server settings that the admin gave me for mail, everything flies and gives an error, help me figure it out.
Mailer settings
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'transport' => [
'class' = > 'Swift_SmtpTransport',
'host' => 'mail.chumak.net',
'username' => '******',
'password' => '******',
'port' = >
And the error it is giving now.
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Answer the question
In order to leave comments, you need to log in
Remove encryption altogether or change tsl to ssl. Apparently it's in the certificate.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question