Got the send message functionality working