Hi there,
I'm having a bit of trouble using the Net::Msmgr module that I downloaded from CPAN. Below is my code,
use strict;
use Net::Msmgr::Session;
use Net::Msmgr::User;
use Net::Msmgr::Switchboard;
use Net::Msmgr::Conversation;
my $session = new Net::Msmgr::Session;
my $user = Net::Msmgr::User->new( user=> 'test@hotmail.com',
password => 'password' ) ;
my $sb = Net::Msmgr::Switchboard->new(ssid => 1);
my $ssid = $sb->ssid;
my $message = qq{MIME-Version: 1.0
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
Hi,
This is a test message.};
my $conversation = Net::Msmgr::Conversation->new(session => $session,
switchboard => $sb,
email => {'somebody@hotmail.com'});
$session->user($user);
$session->Login;
print "Login Successful\n";
$conversation->send_message($conversation, $message);
My problem is that the users in my conversation are not receiving the message I sent. The e-mail addresses and password used as values really exist. I think my problem may be with the value supplied for creating a switchboard
my $sb = Net::Msmgr::Switchboard->new(ssid => 1);
I just assigned some number to ssid. Is there supposed to be some real value that goes here?
I am just trying to create an msn session, create a conversation, add someone to my conversation, and message them. The message should pop-up in their msn messenger client.
Please advise.
janitored by ybiC: <code> tags, as per Monastery convention
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.