[Tutor] Trying to send a URL via XMPP

Stephen Nelson-Smith sanelson at gmail.com
Thu Dec 10 22:29:47 CET 2009


Hi,

I'm trying to send a message to a user via XMPP - but I want them to
receive a clickable word.

I'm using Python 2.4 on RHEL 5.4 and  python-xmpp-0.4.1-6 from EPEL.

I've tried variations on:

>>> jid = xmpp.protocol.JID('motherinlaw at jabber.sekrit.org.uk')
>>> cl = xmpp.Client(jid.getDomain())
>>> cl.connect()
>>> cl.auth(jid.getNode(),'notgoodenough')
>>> cl.send(xmpp.protocol.Message("snelsonsmith at jabber.sekrit.org.uk", "<html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'><p><a href='http://rt.sekrit.org.uk/rt3/Ticket/Display.html?id=#77'>Ticket #77 updated.</a></p></body></html>"))

But every time I just receive the raw html....

Any idea what I am doing wrong?

S.

-- 
Stephen Nelson-Smith
Technical Director
Atalanta Systems Ltd
www.atalanta-systems.com


More information about the Tutor mailing list