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

Instance of QueueManager given #2

Open
dorianboulch opened this issue Jun 30, 2015 · 1 comment
Open

Instance of QueueManager given #2

dorianboulch opened this issue Jun 30, 2015 · 1 comment

Comments

@dorianboulch
Copy link

Hello,
I have this error, I don't understand why.
I'm using Laravel 5.0

ErrorException in Mailer.php line 523:
Argument 1 passed to Illuminate\Mail\Mailer::setQueue() must be an instance of Illuminate\Contracts\Queue\Queue, instance of Illuminate\Queue\QueueManager given, called in C:\wamp\www\xxxxxx\vendor\academe\laraveldkim\src\MailServiceProvider.php on line 37 and defined

My code to send email is :

$email = "[email protected]";
$text = "Email test";
Mail::send(['emails/admin_new_message', 'emails/admin_new_message_text'], ['email' => $email, 'text' => $text], function($message) use ($email)
{
    $message->to($email)->subject('[JOBBING] Nouveau message');
});
@judgej
Copy link
Member

judgej commented Jun 30, 2015

I expect things have moved around a lot in Laravel 5.x This package should have had a requirement limiting it to Laravel 4 - I've added that now (but not tested it yet).

I have not tried it out on L5, and so am not sure how easy it will be to adapt it (it may be simple, it may not).

Personally, I think your best bet will be to use a third-party emailing system such as Mailgun or Mandrill. When I first needed this package, mailing systems were expensive and not so easy to integrate, but these days L5 has access to them built in from the start, so they are very easy to use, and most have a free-level service that is often very generous on daily traffic.

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

2 participants