diff --git a/sendmessage_example.php b/sendmessage_example.php index a599665..a1d84b4 100644 --- a/sendmessage_example.php +++ b/sendmessage_example.php @@ -5,7 +5,7 @@ error_reporting(E_ALL & E_STRICT); include("XMPPHP/XMPP.php"); -$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); +$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); $conn->connect(); $conn->processUntil('session_start'); $conn->presence();