Laravel 8 Send Email with PDF Attachment

In this tutorial, we will learn how to send an email with a PDF attachment via Laravel 8. Sending an email is a common action for web applications. Laravel came with a mailer library called SwiftMailer which provides drivers for sending email via SMTP, Mailgun, Postmark, and Amazon SES.

Let’s create a new Laravel application, open your project in Visual Studio Code. We are going to create an application that will generate a stock report in PDF and send it to the admin via email.