Help me about looping to send message

And, where do you set the text of the message?