Я пытаюсь сделать это: ссылка
но это не сработало :(
ошибка:
не удалось загрузить поток кафе: `C: \ xampp \ apache \ bin \ curl-ca-bundle.crt '
// --------------------------------------------- ----------------------------
есть ли другое решение?
.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=katty17@gmail.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
Mail.php
'port' => env('MAIL_PORT', 587),
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'kawtarmar17@gmail.com'),
'name' => env('MAIL_FROM_NAME', 'hotel'),
],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('katty17@gmail.com'),
'password' => env('password'),
'sendmail' => '/usr/sbin/sendmail -bs',
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
'log_channel' => env('MAIL_LOG_CHANNEL'),
];
php.ini
...
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo ="C:\xampp\apache\bin\curl-ca-bundle.crt"
[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
openssl.cafile ="C:\xampp\apache\bin\curl-ca-bundle.crt"
...