noobIOSCoder / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

How to send multiple messages with xmpphp #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As the title says, i want to send the same message to multiple recipients.
I use the PHP library XMPPHP and send single messages with this:

<?php
include("xmpp.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp',
'gmail.com', $printlog=False, $loglevel=LOGGING_INFO);
$conn->connect();
$conn->processUntil('session_start');
$conn->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect();
?>

I try it with a loop of this:

$conn->message('someguy@someserver.net', 'This is a test message!');

Or a loop with the complete code. But nothing happens...

Best regards

Original issue reported on code.google.com by HanLars...@googlemail.com on 11 Sep 2009 at 9:10