Fixing Laravel 7 Mailtrap.io Issue: Sending Messages with No Sender

How to Solve Reset password Error in Laravel | Can Not Send Message Without A Sender Address Exception Swift_transportexception


[SOLVED] Cannot send message without a sender address | Laravel 7 Mailtrap.io

In this article we are going to solve the common problem arises in Laravel 7 | 6 | 5 that is during the reset password . While using Laravel default Authentication system When you are clicking on reset password it show an error " Cannot send message without a sender address " . 

This is a common error that arises sometimes when you connecting your mail server with your project for the first time .

In this article we will taking the example of  Mailtrap.io and this method is also similar for Google Mail as well.  Just follow the following steps and definitely your error will be solved .

Step :1 

Log in to your Mailtrap accout and check whether your Mail configuration in " .env  " file is same as in your Mailtrap.io id as shown in the following .

Project \ .env :

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=34d7af640c9818
MAIL_PASSWORD=d07708a6993e38
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=0e3aa00606-f48da0@inbox.mailtrap.io
MAIL_FROM_NAME="${APP_NAME}"

Mailtrap.io : 


[SOLVED] Cannot send message without a sender address | Laravel 7 Mailtrap.io

[SOLVED] Cannot send message without a sender address | Laravel 7 Mailtrap.io

Step 2 : 

       After checking that step-1 is done then just open your command prompt and get inside your project directory and enter the following commands one by one .

php artisan cache:clear

php artisan route:cache

php artisan view:clear

php artisan config:cache

You can also try this single command if you don't want use these above commands .

php artisan optimize

It's done , now you simply restart your server and check again it will work fine . If you are still getting any issues regarding this you can simply comment below i will get back to you as soon as possible .

[SOLVED] Cannot send message without a sender address | Laravel 7 Mailtrap.io



The error " Cannot send message without a sender address " is basically happens when we are working with our " .env " file and we are not clearing our cache almost all the times to avoid such kind of errors you just need to clear your cache .


Thank you for reading this article 😊

For any query do not hesitate to comment 😊

Also Read :-

Why Laravel is One of the Best PHP Framework

How to integrate Vue JS with Laravel 

Laravel Pagination

How to use Laravel SweetAlert 

Laravel Authentication System

Laravel Multi-Auth Package

How To generate PDF in Laravel


Previous Post Next Post

Contact Form