<?php
declare(strict_types=1);

function send_invite_email(
    string $to,
    string $firstName,
    string $password
): bool {
    $subject = 'Your account has been created';

    $body = <<<TXT
Hi {$firstName},

Your account has been created.

Login email: {$to}
Temporary password: {$password}

Please log in and change your password immediately.

Regards,
TechStackBase Admin
TXT;

    return mail($to, $subject, $body);
}
