How to send messages to a segment