- Open Laravel Tinker from the project root folder:
php artisan tinker- Run the Test command:
Mail::raw('Hello World!', function($msg) { $msg->to('[email protected]')->subject('Testing SMTP'); });php artisan tinkerMail::raw('Hello World!', function($msg) { $msg->to('[email protected]')->subject('Testing SMTP'); });