Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1
Summary
(Summarize the bug encountered concisely)
Erreur durant l'envoi de mail
Steps to reproduce
(How one can reproduce the issue - this is very important)
Reset de mot de passe.
Example Project
(If possible, please create an example project that exhibits the problematic behavior, and link to it here in the bug report. If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)
What is the current bug behavior?
(What actually happens)
What is the expected correct behavior?
(What you should see instead)
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Ajouter verify_peer à config/mail.php
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'auth_mode' => null,
'verify_peer' => env('MAIL_VERIFY_PEER', true),
],
Edited by Alexandre Bordin