docs send function