【问题标题】:laravel Process could not be started [Le chemin d'acc�s sp�cifi� est introuvable. when send maillaravel 进程无法启动[Le chemin d'acc?s sp?cifi?est introuvable。发送邮件时
【发布时间】:2021-10-14 05:13:22
【问题描述】:

我使用flutter开发移动应用程序,在后端我使用laravel,现在当我尝试注册用户然后发送邮件时,我在发送邮件中发现了这个错误。

进程无法启动 [Le chemin d'acc�s sp�cifi�est introuvable。

代码.env:

MAIL_DRIVER= smtp
    MAIL_HOST=smtp.gmail.com
    MAIL_PORT=465
    MAIL_USERNAME=my gmail
    MAIL_PASSWORD=my password
    MAIL_ENCRYPTION=tls
    MAIL_FROM_ADDRESS=my gmail
    MAIL_FROM_NAME="${APP_NAME}"

code mail.php:

         'mailers' => [
            'smtp' => [
                'driver' => env('MAIL_DRIVER', 'smtp'),
                'transport' => 'mail',
                'host' => env('MAIL_HOST', 'smtp.googlemail.org'),
                'port' => env('MAIL_PORT', 587),
                'encryption' => env('MAIL_ENCRYPTION', 'tls'),
                'username' => env('MAIL_USERNAME'),
                'password' => env('MAIL_PASSWORD'),
                'timeout' => null,
                'auth_mode' => null,
            ],

            'ses' => [
                'transport' => 'ses',
            ],

            'mailgun' => [
                'transport' => 'mailgun',
            ],

            'postmark' => [
                'transport' => 'postmark',
            ],

            'sendmail' => [
                'transport' => 'sendmail',
                'path' => '/usr/sbin/sendmail -bs',
            ],

            'log' => [
                'transport' => 'log',
                'channel' => env('MAIL_LOG_CHANNEL'),
            ],

            'array' => [
                'transport' => 'array',
            ],
        ],

如何解决这个错误,谢谢。

【问题讨论】:

  • 你运行了 php artisan config:cache 和 php artisan config:clear 吗?

标签: php laravel laravel-5 eloquent


【解决方案1】:

如果将来有人遇到这样的错误,我会这样修复: 转到文件 vendor\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php 并注释掉代码 $options = [];并粘贴代码 $options['ssl'] = array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true);

【讨论】:

    猜你喜欢
    • 2016-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-03
    • 2018-07-08
    • 2020-01-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多