Sending Emails Using Push Queues With Confide

Using push queues to send emails offers significant benefits to your application. It boosts application performance which in turn improves the user experience which in one way or another generally leads to a more successful application.

Confide, being built specifically for Laravel 4, has its own mail method that handles translation among other things. This mail method is used for common user account emails such as account confirmation, password resets, etc. With that in mind, to use push queues with with Confide you will need to override the sendEmail() method.

To override the Confide sendEmail() method open up User.php that you created (or edited) when installing Confide and add the following code.

After saving this file, your application will now use a push queue to send user account emails.