F
Filament14mo 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
alexanderkroneis14mo ago
Are you sure that username and password are null? I don't know Mailpit, so I am just rubber debugging rn
Roberto
RobertoOP14mo 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
awcodes14mo ago
My guess is that you don’t have sendmail configured correctly in sail.
cheesegrits
cheesegrits14mo 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
awcodes14mo 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
LeandroFerreira14mo 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
RobertoOP14mo ago
thank you. it worked
alexanderkroneis
alexanderkroneis14mo ago
Ahh, good find @leandro_ferreira
Want results from more Discord servers?
Add your server