diff --git a/Modules/Invoice/Console/SendUpcomingInvoiceReminder.php b/Modules/Invoice/Console/SendUpcomingInvoiceReminder.php index 3e39809de0..4e934b882c 100644 --- a/Modules/Invoice/Console/SendUpcomingInvoiceReminder.php +++ b/Modules/Invoice/Console/SendUpcomingInvoiceReminder.php @@ -32,6 +32,8 @@ public function handle() { $service = app(InvoiceService::class); $upcomingInvoices = $service->getScheduledInvoicesForMail(); - Mail::send(new SendInvoiceReminderMail($upcomingInvoices)); + if ($upcomingInvoices->count()) { + Mail::send(new SendInvoiceReminderMail($upcomingInvoices)); + } } }