Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lara28580's avatar

Why does the Filament Auth Feature not send any emails?

I am trying to configure the filament auth feature so that it sends a email on password reset, but somehow I can't get it to work. If I set my MAIL_MAILER=log nothing gets logged on password reset. It say emails is sent but can't get something in my logs. Someone can help?

0 likes
4 replies
LaryAI's avatar
Level 58

It sounds like you're having trouble with the email functionality in the Filament Auth feature, specifically with the password reset emails not being sent or logged. Here are a few steps you can take to troubleshoot this issue:

  1. Check Configuration: Ensure that your .env file is configured correctly for the mail driver you're using. Since you're using MAIL_MAILER=log, your .env file should look something like this:
MAIL_MAILER=log
# Other mail settings...
  1. Clear Configuration Cache: If you've recently changed your .env file, make sure to clear your configuration cache with the following Artisan command:
php artisan config:cache
  1. Check Filament Configuration: Make sure that Filament is set up to use Laravel's default password broker. If you've published Filament's configuration, check the config/filament.php file to ensure it's not overriding any mail settings.

  2. Check Log Directory: The log mailer should write emails to your application's log files. By default, these are stored in the storage/logs directory. Check the latest log file to see if there's any output related to the password reset emails.

  3. Test Mailing Functionality: You can test if your application's mailing functionality is working by creating a test route that sends an email. Here's an example of how you might do that:

Route::get('/test-mail', function () {
    Mail::raw('This is a test email', function ($message) {
        $message->to('[email protected]')->subject('Test Email');
    });

    return 'Email sent!';
});
  1. Check Email View: If you have customized the password reset email view, make sure that there are no errors in the view file that could prevent the email from being sent.

  2. Check Event Listeners: Filament uses Laravel's event system for password resets. Ensure that the SendPasswordResetNotification listener is not being overridden or removed in your EventServiceProvider.

  3. Check Queue Worker: If your emails are queued, make sure that your queue worker is running. You can run the queue worker with the following command:

php artisan queue:work
  1. Check for Errors: Finally, check your application's error logs for any exceptions or errors that might be occurring when the password reset email is attempted.

If after following these steps you still can't see any logs or emails being sent, it might be helpful to post more details about your setup on the Laracasts forum, including any relevant configuration files or customizations you've made, so that the community can assist you further.

eliaschkenasy's avatar
Level 17

i had some email sending problems as well.

Could it be that you're using the queue but never run it?

Check in your .env file if your QUEUE_CONNECTION is database. To skip the queue altogether you can change the value to "sync".

3 likes

Please or to participate in this conversation.