Implemented 'invite by email' API call