Updates for new mail enviroment for laravel 9
This commit is contained in:
parent
69e5a5f12c
commit
b9ec64fd4f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -134,4 +134,5 @@ return [
|
||||
'log_channel' => env('MAIL_LOG_CHANNEL'),
|
||||
'local_domain' => env('HOSTNAME'),
|
||||
|
||||
'verify_peer' => false,
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user