Hi folks,

I'm trying to create a Perl script that will extract attachments from
Outlook (or Exchange depending on how you look at it) e-mails.  From my
understanding the code below is all I need to create the MAPI session.  From
the session, I can then gather the folders, messages, etc.  However, I can't
seem to initialize the MAPI session correctly.  Every time I try it, the
$Session variable is empty.  I do have CDO 1.21 installed (I checked in the
registry and using the OLE Browser and the DLL is present).  Anyone have any
pointers as to what the problem may be?

use Win32::OLE;
use Win32::OLE::Const 'Microsoft CDO 1.21 Library';

my $Session = Win32::OLE->new("MAPI.Session");

I have been able to get this to working using:
    my $Session = Win32::OLE->new("Outlook.Application");
but Outlook 97 has a wonderful memory leak that quickly sucks up all of my
available resources.  Perhaps I'm doing something wrong there.

Thanks for your help,
Jeremy Blonde
[EMAIL PROTECTED]

_______________________________________________
Perl-win32-users mailing list
[EMAIL PROTECTED]
http://listserv.activestate.com/mailman/listinfo/perl-win32-users
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to