I have been trying to send email for password reset but never receive the email.
No error on the page so not sure how to debug it.
Following is my .env
configuration
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=myUsername
MAIL_PASSWORD=myPassword
MAIL_FROM_ADDRESS='From email address'
MAIL_FROM_NAME='Demo App'
Now when I reset the password, I get success message but do not receive email.
When I use following piece of code just to test emails, it works fine
\Mail::send('emails.send', ['title' => 'Password Rest', 'message' => 'Message has the token to reset password'], function ($message)
{
$message->from('from email address', 'Scotch.IO');
$message->to('To email address');
});
I am just testing with mailtrap
but will be using Office 365 with following configuration
MAIL_DRIVER=smtp
MAIL_HOST=smtp.office365.com
How do I debug the mail error or resolve this problem?
Thank you