Log::info('Sending email', array(
    'title' => $attributes['title'],
    'recipient' => $attributes['email']
));
Mail::queue('emails.welcome', $attributes, function($message) use ($attributes)
{
    $message
        ->to($attributes['email'])
        ->subject($attributes['title']);
});
The problem's with the closure being passed to Mail::queue. What's wrong? This is exactly the same with what's in the docs.
Well, I assume that $attributes is something that you're trying to pass to e-mail view welcome. IF it is, so you'll need to put it in a array. In that case, should be something loike that:  
Mail::queue('emails.welcome', array('attributes' => $attributes), function($message) use ($attributes)
{
    $message
        ->to($attributes['email'])
        ->subject($attributes['title']);
});
... this may work for you! :D
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With