import sleekxmpp
client = sleekxmpp.Client("[email protected]", "password")
client.connect()
client.process(blocking=False)
client.send_message(mto="[email protected]", mbody=self.msg)
XMPPTCPConnection connection = new XMPPTCPConnection("user", "password", "example.org")
connection.connect().login();
Message message = new Message("[email protected]", "Hi, how are you?");
connection.sendStanza(message);
connection.disconnect();