newEmail ? $notification->newEmail : $notifiable->email; if (! $email) { return; } $this->bootConfigs(); $mailMessage = $notification->toMail($notifiable); Mail::send( [], [], fn (Message $message) => $message ->to($email) ->subject($mailMessage->subject) ->html((string) $mailMessage->render()) ); } private function bootConfigs(): void { $type = set_transanctional_email_settings(); if (blank($type)) { throw new Exception('No email settings found.'); } } }