Never been to DZone Snippets before?

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

About this user

Korakot Chaovavanich http://korakot.stumbleupon.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Send message with Google Talk

Copied from Jkx's code here
http://www.larsen-b.com/Article/214.html
   1  
   2  import xmpp
   3  
   4  login = 'Your.Login' # @gmail.com 
   5  pwd   = 'YourPassword'
   6  
   7  cnx = xmpp.Client('gmail.com')
   8  cnx.connect( server=('talk.google.com',5223) )
   9  cnx.auth(login,pwd, 'botty')
  10  
  11  cnx.send( xmpp.Message( "YourFriend@gmail.com" ,"Hello World form Python" ) )
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS