C
C
chelkaz2017-03-10 09:02:33
Laravel
chelkaz, 2017-03-10 09:02:33

Laravel and PHP 7 bug or am I wrong?

I send SMTP mail via Yandex:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.yandex.ru
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls

But I get stream_socket_enable_crypto()
ErrorException in StreamBuffer.php line 94:
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

By the way, I’m sending, pay attention to the subdomain dev .mydomen.ru
It doesn’t have ssl, only port 80, but the main domain mydomen.ru has https
But I think this is not connected at all.
And yet, if in the core /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php I add
to the _establishSocketConnection() function
$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;

That all perfectly works...
Where an error? And can I fix it without touching the kernel.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Doniy, 2017-03-10
@doniys_a

yes, here is the description

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question