python で python-xmpp と python-dns を入れておく。
で、とりあえず試してみた。
cnx = xmpp.Client('hoge.com', debug=[])
cnx.connect(server=('hoge.com', 5222))
cnx.auth('username','password', 'console')
cnx.send(xmpp.Message("fuga@hoge.com", "Hello world!"))
送れた。嬉しい。
Tech (Old)python で python-xmpp と python-dns を入れておく。
で、とりあえず試してみた。
cnx = xmpp.Client('hoge.com', debug=[])
cnx.connect(server=('hoge.com', 5222))
cnx.auth('username','password', 'console')
cnx.send(xmpp.Message("fuga@hoge.com", "Hello world!"))
送れた。嬉しい。
コメント