New version of sendMsg available for testing

The script I created over two years ago to send a message using PHP has gained quite a lot of exposure over the last few months, and a common request I have been getting is the ability to send messages to more than one user.

Over the weekend I modified the class with the following changes:

  • Function to manually create an IM session with a user.
  • Function to send a message on the newest IM session.
  • Font face and colour support for the sendMessage() function.
  • Better error handling when connecting to the messenger server.
  • simpleSend() function to send a single message like the original version.
  • error property to get socket error.

6 Responses to “New version of sendMsg available for testing”


  1. 1 denis

    Hello,

    Thanks for the script.

    It looks like there is a change in the protocol.

    I am getting 911 as a result from the script.

    I had similar problem with other scripts and it looks like MSN is restricting protocol use.

    here is protocol log exchange

    [quote]USR 2 TWN I xxxxxxxx@hotmail.com

    XFR 2 NS 207.46.107.58:1863 0 207.46.96.153:1863

    VER 3 MSNP12 MSNP11 MSNP10 CVR0

    VER 4 MSNP12 MSNP11 MSNP10 CVR0

    VER 4 MSNP12 MSNP11 MSNP10 CVR0

    CVR 5 0×0409 winnt 5.1 i386 MSNMSGR 6.2.0137 MSMSGS xxxxxxx@hotmail.com

    CVR 5 8.1.0178 8.1.0178 6.2.0208 http://msgr.dlservice.microsoft.com/download/1/A/4/1A4FEB1A-18E0-423A-B898-F697402E4F7F/Install_Messenger.exe http://messenger.msn.com

    USR 6 TWN I xxxxxxxxxxx@hotmail.com

    USR 6 TWN S lc=1033,id=507,tw=40,ru=http://messenger.msn.com,ct=1185151243,kpp=1,kv=9,ver=2.1.6000.1,rn=9Q9q4VM9,tpf=ae6901a5912c612ca73a34ee46898dc4

    USR 7 TWN S t=

    911 7[/quote]

  2. 2 Daniel

    [quote]USR 7 TWN S t=[/quote]

    Is that what it is sending or have you removed the rest of it? t= should have a long bit after it, if there is nothing it will get 911.

  3. 3 denis

    I run it again and here is output from _send_data and _process_data function calls.

    VER 0 MSNP8

    VER 0 MSNP8

    CVR 1 0×0409 winnt 5.1 i386 MSNMSGR 6.0.0254 MSMSGS xxxxxxx@hotmail.com

    CVR 1 8.1.0178 8.1.0178 6.2.0208 http://msgr.dlservice.microsoft.com/download/1/A/4/1A4FEB1A-18E0-423A-B898-F697402E4F7F/Install_Messenger.exe http://messenger.msn.com

    USR 2 TWN I xxxxxxxx@hotmail.com

    XFR 2 NS 207.46.107.65:1863 0 65.54.239.210:1863

    VER 0 MSNP8

    VER 0 MSNP8

    CVR 1 0×0409 winnt 5.1 i386 MSNMSGR 6.0.0254 MSMSGS xxxxxxx@hotmail.com

    CVR 1 8.1.0178 8.1.0178 6.2.0208 http://msgr.dlservice.microsoft.com/download/1/A/4/1A4FEB1A-18E0-423A-B898-F697402E4F7F/Install_Messenger.exe http://messenger.msn.com

    USR 2 TWN I xxxxxxx@hotmail.com

    USR 2 TWN S lc=1033,id=507,tw=40,ru=http://messenger.msn.com,ct=1185220635,kpp=1,kv=9,ver=2.1.6000.1,rn=h*aD0jsz,tpf=0f8c6a25c726fe84ee9e0a860490c3c2

    OUT911

  4. 4 phm

    simply thank you !
    Now I can use msn beyond the firewall !

  5. 5 Denis

    Excelent script and it works !!!!!
    However, I noticed that any of my accounts with long password get 911 responce.
    But the script works with short passwords.

    Thanks for the script and I know that it took a lot of time and efford to code it.

  6. 6 indika

    I tried the code but I couldn’t make it work. The code runs, don’t give any error messages. Any sort of help is very much appriciated.

  1. 1 PHP ile MSN'de mesaj atmak (çalýþýyor denendi) - Webmaster Forum
  2. 2 sendMsg updated again, stable release at Fanatic Live

Leave a Reply