I transfer my application from Laravel 4
to Laravel 5
, in sending email particularly in (reset Password).. I got this error
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL
Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
but in laravel 4, it works.
I faced similar problem so I set
MAIL_ENCRYPTION=
in .env file.
and it worked fine for me.
This error means that the SSL certificate verification is failing.
A quick fix would be to add to StreamBuffer.php these lines right after the condition:
if (!empty($this->_params['sourceIp']))
$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;
If you are using basically Windows for development this is the common problem.
Changing your mail driver to "mail" from "smtp" will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With