Subject: How to Send a Chat msg from a C# app to a GTalk client
Hi All,
I need to send a simple text message from a C# (VS 2005) Windows application to a GTalk Client.
Nothing fancy, just open the conn, send msg, close conn. That's it.
I already have this code
and
Only thing I need to know is how to send the msg.
I someone has a simple sample code, plz share it with me.
Thanks in advance
I need to send a simple text message from a C# (VS 2005) Windows application to a GTalk Client.
Nothing fancy, just open the conn, send msg, close conn. That's it.
I already have this code
XmppClientConnection xmpp = new XmppClientConnection();
xmpp.Server = "gmail.com";
xmpp.ConnectServer = "talk.google.com";
xmpp.Username = "your Gmail Account";
xmpp.Password = "your Password";
xmpp.Open();
xmpp.Server = "gmail.com";
xmpp.ConnectServer = "talk.google.com";
xmpp.Username = "your Gmail Account";
xmpp.Password = "your Password";
xmpp.Open();
and
xmpp.Close()
Only thing I need to know is how to send the msg.
I someone has a simple sample code, plz share it with me.
Thanks in advance