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, ];