I am trying to build a login/register system in Laravel. I created all the views and controllers autogenerated (Laravel can do this for you with some commands).
The logic of login + register works fine but when I tried to do email verification after I setup everything in .env when I try to register and send email verification I get this error :
fwrite(): send of 18 bytes failed with errno=10054 Une connexion existante a d� �tre ferm�e par l�h�te distant
I am using "mailtrap" which gives u like a fake email to test with it.
This is my .env configuration '''
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME= "username that i have in my mailtrap inbox"
MAIL_PASSWORD= "password that i have in my mailtrap inbox"
MAIL_ENCRYPTION= NULL
MAIL_FROM_ADDRESS=myemail@gmail.com
MAIL_FROM_NAME="${APP_NAME}"
PS. I am following a tutorial on youtube and I did the same steps as him and it works fine for him. I am using Laravel 7. Thank you very much.