From b9ec64fd4ff14519cf81adf64acce65dac6529a7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 12 May 2022 14:34:14 +1000 Subject: [PATCH] Updates for new mail enviroment for laravel 9 --- app/Console/Commands/InvoiceEmail.php | 10 ++++------ config/mail.php | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/InvoiceEmail.php b/app/Console/Commands/InvoiceEmail.php index 48e4a83..a41064f 100644 --- a/app/Console/Commands/InvoiceEmail.php +++ b/app/Console/Commands/InvoiceEmail.php @@ -36,15 +36,13 @@ class InvoiceEmail extends Command Mail::to($o->account->user->email)->send(new \App\Mail\InvoiceEmail($o)); - if (Mail::failures()) { - dump('Failure?'); - - dump(Mail::failures()); - - } else { + try { $o->print_status = TRUE; $o->reminders = $o->reminders('send'); $o->save(); + + } catch (\Exception $e) { + dd($e); } } } \ No newline at end of file diff --git a/config/mail.php b/config/mail.php index 43d4186..e23e9eb 100644 --- a/config/mail.php +++ b/config/mail.php @@ -134,4 +134,5 @@ return [ 'log_channel' => env('MAIL_LOG_CHANNEL'), 'local_domain' => env('HOSTNAME'), + 'verify_peer' => false, ];