In this tutorial, we will cover an advanced newsletter system, which will use Laravel’s queue and email libraries. After this section, we will learn how to set and fire/trigger queued tasks, and how to parse e-mail templates and send mass e-mails to subscribers. The topics covered in this chapter are:

Creating a database and migrating the subscriber’s table

Creating a subscriber’s model

Creating our subscription form

Validating and processing the form

Creating a queue system to process the e-mail

Using the Email class to process e-mails inside the queue

Testing the system

Sending e-mails with the queue directly

In this tutorial, we will be using third-party services, which will require access to your script, so before proceeding, make sure your project is available online.