Updates for new mail enviroment for laravel 9

This commit is contained in:
Deon George 2022-05-12 14:34:14 +10:00
parent 69e5a5f12c
commit b9ec64fd4f
2 changed files with 5 additions and 6 deletions

View File

@ -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);
}
}
}

View File

@ -134,4 +134,5 @@ return [
'log_channel' => env('MAIL_LOG_CHANNEL'),
'local_domain' => env('HOSTNAME'),
'verify_peer' => false,
];