Laravel has incredible features for sending emails. Let's create a new mailable with markdown and send it using Mailtrap, an email testing service. Then add that ability to our controller whenever new users get added.
Handling a Contact Form Using a Laravel Mailable
Having a contact form where a user can submit their contact request is a very common thing in today's modern websites. Follow along as we add a contact form and use a Mailable to send an email.
Let's tackle the body part of our press file and make sure that it gets properly returned in our data array.
We will start to process each of the fields passed in through the markdown files.