Send Message With Google Talk
Join the DZone community and get the full member experience.Join For Free
Copied from Jkx's code here http://www.larsen-b.com/Article/214.html
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" ) )
Opinions expressed by DZone contributors are their own.