So, I’m assuming that you know how to create a basic laravel project that’s why I’m starting with real action for sending mails.

First of all create view, which you want to send as a mail. Here I have a sample view with “Hello World!” text.

Image for post
Image for post
hello_world.blade.php

After creating view just create a controller. I’m creating controller named “SendMailController” .

Jayesh tharwani

Laravel Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store