用PHP向MSN发送信息的工具PhpMSN Class

  PHP MSN Class(http://code.google.com/p/phpmsnclass/)是一个msn协议的实现类,支持MSNP9 (MSN 6.2)和最新的MSNP15 (WLM 8.1)协议(MSNP15协议支持离线消息),可以作为MSN机器人使用,或者给MSN、雅虎通发消息。
注意:必须确保发送人、接收人的MSN互相加为好友。

  使用非常简单,来看一下例子


<?
$msn = new MSN;

if (!$msn-&gt;connect('YOUR_MSN_ID', 'YOUR_MSN_PASSWORD')) {
    echo "Error for connect to MSN networkn";
    echo "$msn-&gt;errorn";
    exit;
}

$msn-&gt;sendMessage('Now: '.strftime('%D %T')."nTestingnSecond Linennnnand Empty Line",
                  array(
                    'somebody1@hotmail.com',
                    'somebody2@yahoo.com@32'
                       )
                 );
echo "Done!n";
exit;
?>


( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0000355016{main}( ).../index.php:0
20.0001355304require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.173510165808require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.174710236960include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.260310838680get_template_part( ).../single.php:5
60.260310839200locate_template( ).../general-template.php:167
70.260310839296load_template( ).../template.php:643
80.260310839680require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.266010826536cwppos_show_review( ).../content-single.php:29

发表评论

电子邮件地址不会被公开。 必填项已用*标注