Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't catch message using the Log driver #116

Open
dgillier opened this issue May 23, 2023 · 0 comments
Open

Can't catch message using the Log driver #116

dgillier opened this issue May 23, 2023 · 0 comments

Comments

@dgillier
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant