How to send mail using queue in laravel 5?



How to send mail using queue in laravel 5?..

Answer / Aishwarya Kumar

To send mails using queues in Laravel 5, you need to dispatch a job. Here's an example of how to do it:n```phpnuse AppJobsSendEmail; n$job = new SendEmail(); ndispatch($job);n``` Make sure that you have defined the SendEmail class in your app/Jobs directory and configured a queue driver in config/queue.php.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What do you understand by orm?

1 Answers  


What is lts version of laravel?

1 Answers  


What is the use of route in laravel?

1 Answers  


What are the requirements for laravel 5.8?

1 Answers  


List basic concepts in laravel?

1 Answers  


How to create model controller and migration in a single artisan command in laravel?

1 Answers  


Explain how to localize resource uris in laravel?

1 Answers  


What is a flush() ?

1 Answers  


How to get current environment in laravel?

1 Answers  


How can you enable query log in laravel?

1 Answers  


How do I make all of my forms bootstrap opinionated?

1 Answers  


What is the role of service provider?

1 Answers  


Categories