473,799 Members | 3,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems sending IM from perl MSN messenger

154 New Member
Problems sending IM from perl MSN messenger

Hi I am trying to send a msn message from perl msn messenger but I am trying to send am essage and nothing works.

This is the cod eI am using could someone tell me where i am going wrong please.

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. use Net::Msmgr;
  4. use Net::Msmgr::Session;
  5. use Net::Msmgr::User;
  6.  
  7. $ssid = "msncontact@hotmail.com";
  8. $message = "Test from perl client";
  9.  
  10. our $session = new Net::Msmgr::Session;
  11. our $user = new Net::Msmgr::User(
  12.     user => 'username@hotmail.com',
  13.     password => 'password',
  14. );
  15. $session->user($user);
  16. $session->login_handler( sub { shift->Logout } ) ;
  17. #$session->connect_handler () ;
  18. $session->Login;
  19.  
  20. print "Username is: ", $user->user ."\n";
  21.  
  22. #Initiate list syncronization.
  23. $session->ui_sync;
  24. print"$session->ui_sync \n";
  25.  
  26. #Ping the Notification Server.
  27. print "$session->ping \n";
  28.  
  29. #Online Status
  30. $session->ui_state_nln;
  31. print "$session->ui_state_nln";
  32.  
  33. $session->ui_new_conversation;
  34.  
  35. $session->ui_send_message($ssid, $message);
Apr 30 '07 #1
4 2312
KevinADC
4,059 Recognized Expert Specialist
change this line:

Expand|Select|Wrap|Line Numbers
  1. $ssid = "msncontact@hotmail.com";
to:

Expand|Select|Wrap|Line Numbers
  1. $ssid = 'msncontact@hotmail.com';
and see if that helps.

The double quotes in your code is causing perl to treat @hotmail as if it were an array, an empty one in this case, so $ssid is being defined as "mscontact. com" instead of "msncontact@hot mail.com". The single-quotes in my suggestion will eliminate that problem.
Apr 30 '07 #2
jonathan184
154 New Member
Hi Kevin

I did that change but it did not work.

any other ideas?
Apr 30 '07 #3
KevinADC
4,059 Recognized Expert Specialist
Sorry, I don't know anything about those particular modules, I would have to read the documentation to see if you are using them correctly, but you can do that as well as I can.
Apr 30 '07 #4
jabdulius
3 New Member
Hey guys,

I'm trying to use the same package (net-msmgr) to send IM from Perl, but with no luck either. I know for one, or at least I'm pretty sure, that your ssid Jonathan should not be set to an email address. It should be some network identifier which I'm sad to say I don't know what it should be either.

I think you should be passing the email of the person you want to chat with to your Conversation object. Also, I'm pretty sure you need to associate a switchboard with your conversation as well and you send the switchboard the ssid.
Expand|Select|Wrap|Line Numbers
  1. my $switchBoard = new Net::Msmgr::Switchboard( ssid => '8888' );
  2. $conversation->switchboard( $switchBoard );
  3.  
I really wish there was more documentation on this package.

Please let me know if anyone has made any progress on this.

-Karim Varela
Jul 27 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

15
4319
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
2
1976
by: Edwin Quijada | last post by:
Hi! Where can I find examples to accesing postgres with perl. TIA _________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ ---------------------------(end of broadcast)---------------------------
2
3164
by: deepak | last post by:
Hi, Could anyone please tell me which yahoo messenger dll is used for sending messeges to another yahoo user through c# or vb or vc code? -- bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx
1
1022
by: Dan Watson | last post by:
I applogogise... This isn't a VB.NET issue - but my ISP dosnt give's me tough love when it comes to just VB newsgroups here goes: HI guys... I am having a serious bug with my program called Neowin Messenger which I have only been able to get around with delay hacks, which seem to cause more problems than fix. I will try and explain the problem:
2
11602
by: David Kanter | last post by:
Hi, I am relatively inexperienced with VB.Net, but I am familiar with many concepts from programming; I have some basic level of competence with C/C++ and Perl, but I just started using VB this morning. I am trying to write an .exe file that is essentially a script. It will open an application, send it some commands via the keyboard, then wait for the results and close the application.
0
2678
by: Page O Rama | last post by:
Hi, R U BLOCKED ON MSN,YAHOO,ICQ OR AOL Messenger By Your Friend, Then What are you waiting for.Visit one of the link below to find out who has blocked you in his/her friend list. MSN Block Checker: http://www.telepk.com/msn-messenger/msn-block-checker/ Yahoo Block Checker:
2
2868
by: subsanta | last post by:
My computer has so many problems and ive looked around on the internet and ive managed to fix some of them. I know that i have a few viruses on my computer, but i cant get rid of them, in one case i think i have one on my ipod "boot.exe" and i cant get rid of it. All of the antivirus programs ive tried either dont pick it up or cant scan my ipod. Den i have "copy.exe" which i dont know how to fix either. Task manager and regedit were...
0
1271
by: Astan Chee | last post by:
Hi, Im trying to implement the logic from http://www.hypothetic.org/docs/msn/general/http_connections.php to a simple python code using urllib2 and some parts of urllib. Im behind a http proxy that requires authentication that is why Im using urllib2. Im asking for help on how to send commands in a body of a HTTP before requesting for response. What am I doing wrong? I only get the response from the server but my commands never seem to be...
31
12711
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it is working for normal email servers, but NOT with gmail server, I am very puzzled still!!) Codes(item c below) It keeps complaining and logs and codes are below. a) apache access logs --------------------------------- 127.0.0.1 - - "GET...
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10259
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.