<?php
/* Include My_Yahoo_Messenger Class */
include 'My_Yahoo_Messenger.php';
$MYM = new My_Yahoo_Messenger('Account ID', 'Account Password');
/* Get unreaded message from yahoo account */
$newMessage = $MYM->getMessage();
echo '<b> New Message: </b><br />';
foreach( $newMessage as $from => $pm ) {
echo "[ $from ]: $pm<br>";
}
/* send new message to yahoo account */
$MYM->sendMessage('To Account', 'My Message');
?>
|