Subject: how to
I'm trying to send a msg from a jabber account to a gmail account. I do the following:
*create a new c# Project
*add the Matrix.dll as reference
*add a button to the Project form and put the Basic code on it:
why it does not work?
*create a new c# Project
*add the Matrix.dll as reference
*add a button to the Project form and put the Basic code on it:
- // basic send message example
- var xmppClient = new XmppClient {XmppDomain = "jabber.org", Username = "user1", Password = "secret"};
- xmppClient.OnRosterEnd += delegate {xmppClient.Send(new Matrix.Xmpp.Client.Message {To = "user2@gmail.com", Type = MessageType.chat, Body = "Hello World"});};
- xmppClient.Open();
why it does not work?