Skip to content

Can't catch message using the Log driver #116

Open
@dgillier

Description

@dgillier

Hello, I'm trying to test this package using the Log driver.

I setup my Mail driver to use Log driver (and have correctly emails send by my app going to the log).

But can't catch any email...

.env:

MAILBOX_DRIVER=log
MAIL_MAILER=log

My boot in AppServiceProvider:

public function boot()
{
        Mailbox::catchAll(CatchAllMailbox::class);
}

And catchAllMailbox:

<?php

namespace App\Support;

use BeyondCode\Mailbox\InboundEmail;
use Illuminate\Support\Facades\Log;

class CatchAllMailbox
{
    public function __invoke(InboundEmail $email)
    {
        Log::info("mail catched");
    }
}

Any suggestion ?

Thanks, Denis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions