Created sendInvite method