DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Send Message With Google Talk

  • submit to reddit
        Copied from Jkx's code here
import xmpp

login = 'Your.Login' # 
pwd   = 'YourPassword'

cnx = xmpp.Client('')
cnx.connect( server=('',5223) )
cnx.auth(login,pwd, 'botty')

cnx.send( xmpp.Message( "" ,"Hello World form Python" ) )