Email sending not working on reset password

3 Replies
Pathros
PathrosOP2w ago
In an attempt to verify the route registration, according to the php artisan route:list --name=filament command, I get the following output:
GET|HEAD administracion-hidden-url/password-reset/request ........................................... filament.administracion.auth.password-reset.request › Filament\Pages › RequestPasswordReset
GET|HEAD administracion-hidden-url/password-reset/reset ...................................................... filament.administracion.auth.password-reset.reset › Filament\Pages › ResetPassword
GET|HEAD administracion-hidden-url/password-reset/request ........................................... filament.administracion.auth.password-reset.request › Filament\Pages › RequestPasswordReset
GET|HEAD administracion-hidden-url/password-reset/reset ...................................................... filament.administracion.auth.password-reset.reset › Filament\Pages › ResetPassword
these routes are defined somewhere different than routes/web.php. On the Filament's UserResource $table, I have implemented a very simple action to send an email test to a given user of the users table like so:
->actions([
//Send email:
Tables\Actions\Action::make('test-email')->label('Send test email')
->action(function (User $record) {
//Envío del email de prueba
$record->notify(new TestEmail());
})
->requiresConfirmation()
->modalHeading('Envío de correo de prueba')
,
], position: Tables\Enums\ActionsPosition::BeforeCells)
->actions([
//Send email:
Tables\Actions\Action::make('test-email')->label('Send test email')
->action(function (User $record) {
//Envío del email de prueba
$record->notify(new TestEmail());
})
->requiresConfirmation()
->modalHeading('Envío de correo de prueba')
,
], position: Tables\Enums\ActionsPosition::BeforeCells)
When I click on send email, the mailpit does get the email message. Then why doesn't the forgot password email sending is not arriving to mailpit? What do i need to debug to make it work?
Julien B. (aka yebor974)
Hi. The reset password notification is put in the job queue. Try to enable your queue if not. If you use horizon : php artisan horizon
toeknee
toeknee2w ago
You don't need horizon. But you do need tot start the queue: php artisan queue:work

Did you find this page helpful?