src/main/java/org/jivesoftware/smack/Chat.java
public void sendMessage(String text) throws XMPPException {
        Message message = new Message();
        message.setTo(participant);
        message.setType(Type.chat);
        message.setThread(threadID);
        message.setBody(text);
        chatManager.sendMessage(this, message);
    }
public void sendMessage(String text) throws XMPPException {
        Message message = new Message();
        message.setTo(participant);
        message.setType(Type.chat);
        message.setThread(threadID);
        message.setBody(text);
        chatManager.sendMessage(this, message);
    }
Sends the specified text as a message to the other chat participant. This
is a convenience method for:

<pre>
Message message = chat.createMessage();
message.setBody(messageText);
chat.sendMessage(message);
</pre>

@param text
the text to send.
@throws XMPPException
if sending the message fails.