I'm trying to use the Mail::queue in Laravel 4 without success.
When I run the command:
php artisan queue: subscribe queue_name http://foo.com/queue/push
It is created on my dashboard a subscriber, and also when I access my route queue/send a new queue is sent to Iron.io.
The problem is that I never received the email should be sent when the Mail::queue to be executed.
Look my routes:
<?php
Route::post('queue/push', function() {
return Queue::marshal();
});
Route::get('queue/send', function() {
Mail::queue('emails.teste', array(), function($message) {
$message->to('me@mesite.com', 'Renato')->subject('Welcome!');
});
return 'Ok';
});
Is there any configuration beyond queues.php I need to do?
When I change the queue/push (for debug) to accept GET and access the URL, the following error appears:
lluminate\Encryption\DecryptException
Invalid data.