Python snippet to send XMPP messages using talk.google.com
#!/usr/bin/python
import xmpp
user = 'your_login'
pwd = 'your_password'
cnx = xmpp.Client('gmail.com')
cnx.connect( server=('talk.google.com',5223) )
cnx.auth( user,pwd,'python xmpp bot' )
cnx.send( xmpp.Message( "contact@domain.tld" ,"message" ) )


Alexandre DE DOMMELIN