Implements send message command.