Blog

How to Send Email in Laravel
Created: 11 November 2022

This assumes you have installed Laravel Framework. Some of the options are optional. E.g.: if you already have a Controller or a function, you don't need to create one.

  1. create a new controller
  2. create a new function
  3. add a route to web.php
  4. php artisan make:mail SignUpMail
  5. add an email view
  6. use SignUpMail in the controller
  7. go to mailtrap.io and copy laravel configuration
  8. paste it in .env
  9. go to the route url