cl = xmpp.Client('myserver.com') if not cl.connect(server=('mysefver.com',5223)): raise IOError('cannot connect to server') cl.RegisterHandler('message',messageHandler) cl.auth('[email protected]', 'mypassword', 'statusbot') cl.sendInitPresence()
msgtext = formatToDo(cal, 'text')
message = xmpp.Message('[email protected]', msgtext)
message.setAttr('type', 'chat')
cl.send(message)
I get the following error message when I try to run it:
xmpp.protocol.InvalidFrom: (u'invalid-from', '')
Why is this happening :(