generic function to send all apps