<div class="gmail_quote">On Thu, Dec 10, 2009 at 3:29 PM, Stephen Nelson-Smith <span dir="ltr"><<a href="mailto:sanelson@gmail.com">sanelson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I'm trying to send a message to a user via XMPP - but I want them to<br>
receive a clickable word.<br>
<br>
I'm using Python 2.4 on RHEL 5.4 and python-xmpp-0.4.1-6 from EPEL.<br>
<br>
I've tried variations on:<br>
<br>
>>> jid = xmpp.protocol.JID('<a href="mailto:motherinlaw@jabber.sekrit.org.uk">motherinlaw@jabber.sekrit.org.uk</a>')<br>
>>> cl = xmpp.Client(jid.getDomain())<br>
>>> cl.connect()<br>
>>> cl.auth(jid.getNode(),'notgoodenough')<br>
>>> cl.send(xmpp.protocol.Message("<a href="mailto:snelsonsmith@jabber.sekrit.org.uk">snelsonsmith@jabber.sekrit.org.uk</a>", "<html xmlns='<a href="http://jabber.org/protocol/xhtml-im" target="_blank">http://jabber.org/protocol/xhtml-im</a>'><body xmlns='<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>'><p><a href='<a href="http://rt.sekrit.org.uk/rt3/Ticket/Display.html?id=#77" target="_blank">http://rt.sekrit.org.uk/rt3/Ticket/Display.html?id=#77</a>'>Ticket #77 updated.</a></p></body></html>"))<br>
<br>
But every time I just receive the raw html....<br>
<br>
Any idea what I am doing wrong?<br><br></blockquote><div><br></div><div>I don't know anything about xmpp, but you could try receiving a message and inspecting how that is built?</div><div><br></div><div>HTH,</div><div>
Wayne </div></div>