fix sample code to use send_message() macro