sendMsg is a class which allows you to send a message to a contact from a specified account. It logs in, changes status to online, creates a new IM session with the target user, sends the message and ends both connections.
The Messenger server imposes a limit on how many IM sessions can be created per minute, so the script is not suited for sending messages to large numbers of contacts within the same login session (see below).
The user sending the message must be on the allow list of the receiving user; or, the target user must have “All others” on their allow list (as in the Windows Live Messenger options dialog). To get the login ticket for authentication it uses theMSNPAuth class, which is included in the ZIP file.
Because of the way the protocol works, the sending user doesn’t appear to come online because it does not synchronize lists.
This class has not been extensively tested, if you find a bug or error, please post a comment here.

Recent Comments