If a Laravel app sends emails straight away in development but never delivers them in production, the cause is almost always one of three things: the queue, the mail configuration, or a failed job. Here is how to check each one.
1. Check whether the mail is queued
Many notifications implement ShouldQueue. If they do, the email is not sent when the code runs. It is placed on the queue and sent later by a worker.
class InvoicePaid extends Notification implements ShouldQueue { use Queueable; } If nothing is processing the queue, the email sits there indefinitely. Start a worker and check that it stays running:
php artisan queue:work --tries=3 In production, run the worker under Supervisor or a similar process manager so it restarts after a deploy or crash.
2. Look for failed jobs
When a queued mail throws an exception, Laravel moves it to the failed_jobs table (if the migration exists). List the failures and read the reason:
php artisan queue:failed Common reasons are an authentication error from the SMTP server, a misconfigured from address, or a template that references a missing variable. After fixing the cause, retry the jobs:
php artisan queue:retry all 3. Check the mail configuration
Make sure .env matches the mailer you actually use:
MAIL_MAILER=smtp MAIL_HOST=smtp.yourprovider.com MAIL_PORT=587 MAIL_USERNAME=... MAIL_PASSWORD=... MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS="hello@yourdomain.com" MAIL_FROM_NAME="${APP_NAME}" After any .env change, clear the config cache, or the old values will keep being used:
php artisan config:clear php artisan config:cache A quick test that bypasses the network: set MAIL_MAILER=log temporarily. The email is written to storage/logs/laravel.log, so you can confirm the content is right before turning SMTP back on.
4. Read the logs
If the mail is not queued and not failing, the exception may be swallowed elsewhere. Check storage/logs/laravel.log while you trigger the action, and look for SMTP or connection errors.
A checklist
[ ] Is the notification queued, and is a worker running?
[ ] Does
queue:failedshow any jobs?[ ] Does the SMTP configuration match the provider's settings?
[ ] Did you run
config:clearafter changing.env?[ ] Does the log show the email content when
MAIL_MAILER=log?
If you have worked through this and the emails are still not arriving, the problem is often in the SMTP provider's sending domain (SPF, DKIM, DMARC records). That is a DNS fix, not a Laravel one.
Ali Hussain is a full-stack Laravel developer who fixes production issues like this one. If your app has a problem you cannot track down, run a free site health check or book a 15-minute call.
