To test the mail configuration of Laravel. Follow this simple steps –
SSH into the server
- Run the
tinker
Artisan command to enter the Tinker environment
php artisan tinker
- Run this following command
Mail::send('welcome', [], function($message) { $message->to('[email protected]')->subject('Testing mails'); });
If tinker shows successful then check mail to ensure mail received properly.
Otherwise tinker will throw error. Follow the error to solve the mail configuration.
No Comments
Leave a comment Cancel