laravel - 在 Lumen 框架内通过 Mandrill 发送电子邮件
问题描述
我已经使用以下代码在配置目录services.php中创建了文件:
<?php
return [
'mandrill' => [
'secret' => env('MANDRILL_SECRET'),
],
],
];
此外,项目中还添加了依赖Illumination/mail (v.^6.3)。
但是,当我尝试使用这行代码发送电子邮件时
Mail::to($user->email)->send(new Welcome($user));
我看到一个错误:{"data":null,"errors":{"messages":"Driver [mandrill] not supported.","fields":[]}}
框架版本 - Lumen (6.0.2) (Laravel Components ^6.0)
解决方案
此提交放弃了对 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.
因此,您必须安装第三方软件包才能再次支持它,例如innate/laravel-mandrill-driver
另请注意,它已从5.3 中的文档中删除,因此您必须阅读5.2 文档以获取官方信息或上述软件包自述文件
希望这可以帮助
推荐阅读
- nuxt.js - 需要 Sass-loader 和 node-sass(因此 nuxt-sass-resources-loader aswel)作为产品依赖项
- php - 类方法如何在php中返回
- c++ - 如何在 windows 上使用和配置 clang-tidy?
- swift - 获取输出帧失败,状态 8196
- ios - VNRectangleObservation 角在 iPhone 上的 x 轴上压缩
- json - 有没有办法在 Angular6 路由期间延迟加载静态 json?
- scala - 在 Scala 中使用带有类型参数化函数的 jmock
- javascript - 显示一个加载页面时的内容,刷新时出现
- sql-server - 使用多个/一个下拉列表中的值从数据库中检索数据
- javascript - 使用 IIS 服务器上的 ASP.NET 托管来自 SignalR Hub 的 403(禁止)响应