basic message sending function for client