Solution of Laravel 9.x upgrade email verification issue #41110
Unanswered
orkuncoding
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, after i upgrade a Laravel 6 application to Laravel 9, i got an error about email verification.
This is the error.
Then i tried to fix it. By the way this is my .env file smtp config.
MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=sameusername MAIL_PASSWORD=secretpassword MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS="[email protected]" MAIL_FROM_NAME="${APP_NAME}"
so installed a fresh laravel application and laravel ui and everything as same as my upgraded laravel application but i still get that error. Then i looked inside.
This is laravel email verify function. As you can see it does not have a "Sender" or "From" so i tried to added manually;
so when i added this. It said your email adress is empty but i was not empty.
so i added this config to my app config file.
Then i called it like this.
Bingo! It works so this is how i fixed this error. I hope this can help you.
Beta Was this translation helpful? Give feedback.
All reactions