include 'XMPPHP/XMPP.php'; $conn = new XMPPHP_XMPP('talk.google.com', 5222, 'xxx@gmail.com', 'xxxx', 'xmpphp', 'gmail', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); try { $conn->connect(); $conn->processUntil('session_start'); $conn->presence(); $conn->message('foo@example.com', 'This is a test message!'); $conn->disconnect(); } catch(XMPPHP_Exception $e) { die($e->getMessage()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)