M
Maitre Bart
I am trying to replicate (at least the beginning of) the example given
at:
http://aspn.activestate.com/ASPN/do...Winfaq9.html#Is_there_a_way_to_access_MAPI_fr
where a code sample is provided to send an email with a Perl script
running on Windows XP using the Win32::OLE module:
# Sender's Name and Password
#
my $sender = "YOUR NAME HERE";
my $passwd = "YOUR PASSWORD HERE";
# Create a new MAPI Session
#
use Win32::OLE;
$session = Win32::OLE->new("MAPI.Session")
or die "Could not create a new MAPI Session: $!";
[...]
In my case I want to browse the Inbox folder and find a message with a
specific subject. However, I can't pass the session creation line: I
always get a undefined ref from the call (and die follows). Anyone
experienced this before?
(Looking at the threads that discussed this subject, it looks like they
are 4-5 years old... I wonder if there is another approach or if
MAPI.Session is still the way to go but I'm doing something wrong with
it?)
at:
http://aspn.activestate.com/ASPN/do...Winfaq9.html#Is_there_a_way_to_access_MAPI_fr
where a code sample is provided to send an email with a Perl script
running on Windows XP using the Win32::OLE module:
# Sender's Name and Password
#
my $sender = "YOUR NAME HERE";
my $passwd = "YOUR PASSWORD HERE";
# Create a new MAPI Session
#
use Win32::OLE;
$session = Win32::OLE->new("MAPI.Session")
or die "Could not create a new MAPI Session: $!";
[...]
In my case I want to browse the Inbox folder and find a message with a
specific subject. However, I can't pass the session creation line: I
always get a undefined ref from the call (and die follows). Anyone
experienced this before?
(Looking at the threads that discussed this subject, it looks like they
are 4-5 years old... I wonder if there is another approach or if
MAPI.Session is still the way to go but I'm doing something wrong with
it?)