F
Filament10mo 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="support@honey.com" MAIL_FROM_NAME="${APP_NAME}"
No description
8 Replies
alexanderkroneis
alexanderkroneis10mo ago
Are you sure that username and password are null? I don't know Mailpit, so I am just rubber debugging rn
Roberto
Roberto10mo 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
awcodes10mo ago
My guess is that you don’t have sendmail configured correctly in sail.
cheesegrits
cheesegrits10mo 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
awcodes10mo 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
LeandroFerreira10mo 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
Roberto10mo ago
thank you. it worked
alexanderkroneis
alexanderkroneis10mo ago
Ahh, good find @leandro_ferreira