connect(); $conn->processUntil('session_start'); $conn->presence(); $conn->message('someguy@someserver.net', 'This is a test message!'); $conn->disconnect(); } catch(XMPPHP_Exception $e) { die($e->getMessage()); }