is there any way to send chat message to xmpp from web2py? i've tried before but no luck. e.g. *controllers/default.py* def sendjabber(): import xmpp FROM_JABBER_ID = "from...@fujabber.com" JABBER_PASS = "from_id_pass"
#JABBER_PORT = "80" #JABBER_PORT = "443" #JABBER_PORT = "5222" #JABBER_PORT = "5223" #JABBER_PORT = "5269" #JABBER_PORT = "5280" JABBER_PORT = "5281" #JABBER_PORT = "5298" #JABBER_PORT = "6788" #JABBER_PORT = "8010" #JABBER_PORT = "" JABBER_SERVER = "fujabber.com" TO_JABBER_ID = "to...@fujabber.com" jid = xmpp.protocol.JID(FROM_JABBER_ID) cl = xmpp.Client(jid.getDomain(), debug = [] ) if not cl.connect((JABBER_SERVER, JABBER_PORT) ): raise IOError('Can not connect to server.') if not cl.auth(jid.getNode(), JABBER_PASS): raise IOError('Can not auth with server.') cl.send(xmpp.protocol.Message(TO_JABBER_ID , "Hello World again", typ = 'chat') ) cl.disconnect() thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.