<?php

namespace App\Services\Families;

use App\Services\Email\EmailDispatchService;

class FamilyNotificationService
{
    public function __construct(private EmailDispatchService $dispatch)
    {
    }

    public function sendComposeEmail(
        string $recipient,
        string $subject,
        string $htmlMessage,
        ?string $profile = null,
        ?string $replyToEmail = null,
        ?string $replyToName = null
    ): bool {
        return $this->dispatch->send(
            $recipient,
            $subject,
            $htmlMessage,
            $profile,
            $replyToEmail,
            $replyToName
        );
    }
}
