Laravel/SendinBlue 缺少参数

发布于 01-11 01:55 字数 868 浏览 6 评论 0原文

我一直在与: https://github.com/agence-webup/laravel-sendinblue

设置我的所有内容需要,但我仍然遇到一个错误:

{"code":"missing_parameter","message":"'to' is required"}

我尝试插入 To 方法,但也不起作用。我被困住了。

我的控制器:

$log = new LogController();
Mail::to($parameters['mail'])->send(new Verification($parameters));

我的可邮寄版本:

return $this
    ->view([])
    ->subject(SendinBlueTransport::USE_TEMPLATE_SUBJECT)
    ->sendinblue(
        [
            'template_id' => 3,
            'tags' => ['information'],
            'params' => [
                'FIRSTNAME' => $this->user,
                'LASTNAME' => $this->verificationCode,
            ],
        ]
    );

I've been working with:
https://github.com/agence-webup/laravel-sendinblue

Setup everything I need but still I got one error:

{"code":"missing_parameter","message":"'to' is required"}

I tried to insert the To method, but also that didn't work. I'm stuck.

My controller:

$log = new LogController();
Mail::to($parameters['mail'])->send(new Verification($parameters));

My mailable build:

return $this
    ->view([])
    ->subject(SendinBlueTransport::USE_TEMPLATE_SUBJECT)
    ->sendinblue(
        [
            'template_id' => 3,
            'tags' => ['information'],
            'params' => [
                'FIRSTNAME' => $this->user,
                'LASTNAME' => $this->verificationCode,
            ],
        ]
    );

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文