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;