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.
- create a new controller
- create a new function
- add a route to web.php
- php artisan make:mail SignUpMail
- add an email view
- use SignUpMail in the controller
- go to mailtrap.io and copy laravel configuration
- paste it in .env
- go to the route url