Skip to content

InvalidArgumentException:Driver [directmail] not supported #2

@lvxianchao

Description

@lvxianchao

我的 .env 文件里:MAIL_DRIVER=directmailconfig/services.php 添加了如下:

'directmail' => [
        'key' => env('ALIYUN_ACCESS_KEY_ID'),
        'address_type' => 1,
        'from_alias' => 'fucker',
        'click_trace' => 0,
        'version' => '2015-11-23',
        'region_id' => 'cn-hangzhou',
    ],

结果就报错了。

Laravel 版本:5.7

我在 config/mail.php 里看到:

/*
    |--------------------------------------------------------------------------
    | Mail Driver
    |--------------------------------------------------------------------------
    |
    | Laravel supports both SMTP and PHP's "mail" function as drivers for the
    | sending of e-mail. You may specify which one you're using throughout
    | your application here. By default, Laravel is setup for SMTP mail.
    |
    | Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
    |            "sparkpost", "log", "array"
    |
    */

    'driver' => env('MAIL_DRIVER', 'smtp'),

该如何解决呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions