Support the ongoing development of Laravel.io →
posted 10 years ago
Mail Queues
Last updated 2 years ago.
0

Any ideas?

Here are the mail messsages that I'm queueing:

	Mail::queue('emails.thanks', $data, function($message) use ($info, $name) {
	
		$message->to($email, $name)
				->from($from_address, $from_name)
				->replyto($from_address, $from_name)
				->subject('Your request');
	
	});


	Mail::queue('emails.confirm', $data, function($message) use ($info) {
	
		$message->to('[email protected]', 'Me')
				->from($from_address, $from_name)
				->replyto($from_address, $from_name)
				->subject('Request submitted');
	
	});

Every mail is sent to the queue, the "Messages all time" increases by 2...and I'm sending to 2 emails. But they're never received.

So, is there configuration that I need to do so that Iron releases the messages?

Last updated 2 years ago.
0
Solution

The measure of correct configuration is not "Messages all time", its the number of message that get deducted from queue.

That said, you have to configure your application to receive the queue and process by creating a route :

Route::post('queue/receive', function()
{
    return Queue::marshal();
});
Last updated 2 years ago.
0

Thank you.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerauf jerauf Joined 16 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.