On Thu, Dec 10, 2009 at 3:29 PM, Stephen Nelson-Smith <[email protected]>wrote:

> 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('[email protected]')
> >>> cl = xmpp.Client(jid.getDomain())
> >>> cl.connect()
> >>> cl.auth(jid.getNode(),'notgoodenough')
> >>> cl.send(xmpp.protocol.Message("[email protected]",
> "<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?
>
>
I don't know anything about xmpp, but you could try receiving a message and
inspecting how that is built?

HTH,
Wayne
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to