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

helpme's avatar

Laravel notifications via mail not sending email on shared hosting server but works on local

As above title said, I was able to send email on local via notification with onqueue using same the email configuration with production but was not able to send email on production via notification with onqueue. Please help! :(

My production server is shared hosting Hostgator

the .env file MAIL_DRIVER=smtp MAIL_PORT=465 MAIL_ENCRYPTION=ssl and was cache cleared. If local works then why not on production as in server?

        $when = Carbon::now()->addSeconds(10);
        $user->notify((new NewStuff(auth()->user()->name, $stuff, $repo))->delay($when));

NewStuff: namespace App\Notifications;

use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage;

class NewStuff extends Notification implements ShouldQueue { use Queueable;

0 likes
2 replies
NickVahalik's avatar

I am actually having the same problem. Using sync for the queue driver.

Please or to participate in this conversation.