How to test if email is working

Laraship QuestionsCategory: TechnicalHow to test if email is working
gerhard asked 6 years ago
I have setup email in the .env file, we use smtp2go, but when I try password reset the email is not sent. How can I check that the email settings are accepted and working
1 Answers
laraship Staff answered 6 years ago

Hello, You can use Laravel tinket to test sending email as below:

  • SSH into console
  • go to project
    $ php artisan tinker  
    $ Mail::send('errors.401', [], function ($message) { $message->to('your-email-address')->subject('this works!'); });
  • check your mailbox