在Lumen Framework中通过Mandrill发送电子邮件

问题描述 投票:0回答:1

我已经在配置目录services.php中使用以下代码创建了文件:

<?php
     return [
       'mandrill' => [
            'secret' => env('MANDRILL_SECRET'),
        ],
     ],
];

此外,依赖项照亮/邮件(v。^ 6.3)已添加到项目中。

但是,当我尝试使用此行代码发送电子邮件时

Mail::to($user->email)->send(new Welcome($user));

我看到错误:{"data":null,"errors":{"messages":"Driver [mandrill] not supported.","fields":[]}}

框架版本-流明(6.0.2)(Laravel组件^ 6.0)

laravel lumen mandrill
1个回答
0
投票

this commit放弃了对Mandrill邮件服务的支持

Remove Mandrill and SparkPost mail drivers

We're removing these drivers because we feel that general interest in these is 
declining and these aren't used by any of Laravel's core services themselves. 
We're encouraging the community to release packages for these if there's any 
interest in continued use of them.

因此,您将必须安装第三方软件包才能再次支持它,例如intonate/laravel-mandrill-driver

希望这会有所帮助

© www.soinside.com 2019 - 2024. All rights reserved.