F
Filament15mo ago
Roberto

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}"
No description
8 Replies
alexanderkroneis
alexanderkroneis15mo ago
Are you sure that username and password are null? I don't know Mailpit, so I am just rubber debugging rn
Roberto
RobertoOP15mo ago
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
awcodes
awcodes15mo ago
My guess is that you don’t have sendmail configured correctly in sail.
cheesegrits
cheesegrits15mo ago
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.
awcodes
awcodes15mo ago
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.
LeandroFerreira
LeandroFerreira15mo ago
You should add MustVerifyEmail
namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable implements MustVerifyEmail
{
use Notifiable;

// ...
}
namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable implements MustVerifyEmail
{
use Notifiable;

// ...
}
Roberto
RobertoOP15mo ago
thank you. it worked
alexanderkroneis
alexanderkroneis15mo ago
Ahh, good find @leandro_ferreira
Want results from more Discord servers?
Add your server