the code to send message