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. - #!/usr/bin/perl
-
-
use Net::Msmgr;
-
use Net::Msmgr::Session;
-
use Net::Msmgr::User;
-
-
$ssid = "msncontact@hotmail.com";
-
$message = "Test from perl client";
-
-
our $session = new Net::Msmgr::Session;
-
our $user = new Net::Msmgr::User(
-
user => 'username@hotmail.com',
-
password => 'password',
-
);
-
$session->user($user);
-
$session->login_handler( sub { shift->Logout } ) ;
-
#$session->connect_handler () ;
-
$session->Login;
-
-
print "Username is: ", $user->user ."\n";
-
-
#Initiate list syncronization.
-
$session->ui_sync;
-
print"$session->ui_sync \n";
-
-
#Ping the Notification Server.
-
print "$session->ping \n";
-
-
#Online Status
-
$session->ui_state_nln;
-
print "$session->ui_state_nln";
-
-
$session->ui_new_conversation;
-
-
$session->ui_send_message($ssid, $message);
4 2312 KevinADC 4,059
Recognized Expert Specialist
change this line: - $ssid = "msncontact@hotmail.com";
to: - $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.
Hi Kevin
I did that change but it did not work.
any other ideas?
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.
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. -
my $switchBoard = new Net::Msmgr::Switchboard( ssid => '8888' );
-
$conversation->switchboard( $switchBoard );
-
I really wish there was more documentation on this package.
Please let me know if anyone has made any progress on this.
-Karim Varela
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
|
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)---------------------------
|
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
|
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:
|
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.
| |
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:
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |