I’‘ve been dabbling a bit now with Jabber, Spark & Smack. What I’'m trying to do is write a bit of API that will send a broadcast message to a group of IM addresses across different gateways (AIM, MSN, Yahoo, ICQ etc.).
So, I downloaded Spark and created a new account with a random Jabber server, in this instance jabber.belnet.be. I then registered my AIM, MSN, ICQ and Yahoo accounts. Good so far.
The API I am using is as follows. Note it works as expected with AIM. But with MSN it gives the following error:
XMPPConnection.DEBUG_ENABLED = true;
XMPPConnection connection = new XMPPConnection(“jabber.belnet.be”);
Message message = new Message();
message.setSubject("Message from ");
message.setBody("Message from: Alan. This is a test. ");
Now, I am assuming that you can do this anyway. If I’'m on the right tracks any ideas why the error?
Thanks in advance.