I am trying to send a message through XMPP IM URL like below:
But it is not sending message and opening a chat window with email@example.com?message.
xmpp:firstname.lastname@example.org is opening a chat window properly. But it is not sending message.
Please guide me on how to send message using XMPP URL.
What are you using to execute the URI, and what behavior are you expecting?
When I put the URL
xmpp:email@example.com?message;body=Testing%20One%20Two%20Three, it opens a Jabber window and places the text in the message area. Is that what you are looking for?
This only works for me in Firefox and Internet Explorer, though. It doesn't work in Chrome, although that may be because I'm using the development branch of Chrome.
PS EDIT: It only seems to work with Jabber 10.5, not 9.2.7 and below.
The XEP-0147 query spec is supported in Jabber 10.5. It opens the Jabber message window and populates the message area with the message you specify in the URI. It does not send the message automatically, which is the desired behavior. That may be counter-intuitive, but consider the consequences of having it send the message automatically. If it sent the message, anyone could design a web page with links that send Jabber messages on your behalf without your intervention. (Could lead to embarrassing situations, no?)
You can write CAXL applications to send messages automatically. Since the CAXL web application needs to perform authentication (username, password), you can't really be tricked into sending messages without intervention.