title: Python2.6 xmpp Jabber Error
body: <p>I am using xmpp with python and I want create a simple client to communicate with a gmail
  id. </p>
  
  <pre><code>#!/usr/bin/python
  import xmpp
  
  login = 'Your.Login' # @gmail.com 
  pwd   = 'YourPassword'
  
  cnx = xmpp.Client('gmail.com')
  cnx.connect( server=('talk.google.com',5223) )
  cnx.auth(login,pwd, 'botty')
  
  cnx.send( xmpp.Message( "YourFriend@gmail.com" ,"Hello World form Python" ) )
  </code></pre>
  
  <p>When I run the last line I get an exception</p>
  
  <blockquote>
    <p>IOError: Disconnected from server.</p>
  </blockquote>
  
  <p>Also when I run the other statements I get debug messages in the console.</p>
  
  <p>What could be the issue and how can I resolve it ?</p>