from app.core.email_service import send_reset_password_email as _send_reset_password_email

def send_reset_password_email(name: str, lastname: str, email: str, token: str) -> bool:
    """
    Compatibility wrapper for legacy password reset email dispatch.
    Delegates to the unified, SMTP-first/configurable email_service.py.
    """
    full_name = f"{name} {lastname}".strip() if lastname else name
    return _send_send_email_legacy(full_name, email, token)

def _send_send_email_legacy(name: str, email: str, token: str) -> bool:
    return _send_reset_password_email(name, email, token)
