Location: PHPKode > scripts > PHP to Yahoo Messenger > sample.php
<?php
include("php2ym.php");
$encrypted_data = 'fill_with_encrypted_username_password_separated_by_l_(lowercase_of_L)';
//ie: $encrypted_data = '2345abcdel5432edcba'; --> ID YM (encrypted) = 2345abcde and password (encrypted) = 5432edcba

$ym = new ymMobile;
$ym->ymLogin($encrypted_data);
$ym->kirimPesan('hide@address.com', 'This is a chat message sent by PHP on '.date("d-m-Y / H|i|s"));
?>
Return current item: PHP to Yahoo Messenger