extra_attributes?->get('smtp_enabled') !== true) { return; } $email = $notifiable->email; if (!$email) { return; } $this->bootConfigs($settings); $mailMessage = $notification->toMail($notifiable); Mail::send( [], [], fn (Message $message) => $message ->from( $settings->extra_attributes?->get('smtp_from_address'), $settings->extra_attributes?->get('smtp_from_name') ) ->to($email) ->subject($mailMessage->subject) ->html((string)$mailMessage->render()) ); } private function bootConfigs(InstanceSettings $settings): void { set_transanctional_email_settings(); } }