Did not receive email confirmation
i have enabled emailVerification in panel. But i did not receve any email to my mailpit after registration.
is this correct?
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
8 Replies
Are you sure that username and password are null?
I don't know Mailpit, so I am just rubber debugging rn
i have installed mailpit along with sail. so, it takes care of .env file (i guess)
it doesn't need any username or password, i can access mailpit at localhost:8025
My guess is that you don’t have sendmail configured correctly in sail.
Don't think sendmail would be involved. It should just open a direct SMTP connection. Maybe the port mapping in the sail docker compose? I do the same thing with Mailhog in Sail, it works fine.
Very last thing in their readme mentions configuring sendmail. But I don’t know I run everything through mailtrap. It just works.
And they have copy paste env for laravel.
You should add MustVerifyEmail
thank you. it worked
Ahh, good find @leandro_ferreira