Laravel uses Mailtrap as a default server. env file and specify the SMTP server settings that will be used for email sending.
You can find a detailed tutorial on how to send emails in Laravel in our dedicated blog post. If you already did, jump right to the section Laravel mail queue configuration. So, before we can create a job for it, we need to build an email and set up configuration for sending it. Here is an example of running a worker that gives a higher processing priority to a queue: php artisan queue:work -queue=high,default In Laravel, you can specify the priority of queues to be processed by the worker. This can be useful for apps that need to prioritize or segment jobs processing. Connections may have several assigned queues. Also, this file contains connection configurations for each queue driver. All the data about queues configuration is stored in config/queue.php. Setting up an email queueĪ regular queue in Laravel consists of a job, a logic for the task you want to run, and a worker that runs the job. So, let’s find out how to set up email queues in Laravel. There are many other cases that reveal the efficiency of queuing.