Try http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaol10/htm l/olobjApplication.asp This site has all the available methods for Outlook. The examples are in VB but they can be converted to Perl. The following code will open a list of pst files into Outlook.
use Win32::OLE; $ol = Win32::OLE->CreateObject("Outlook.Application"); $namespace = $ol->GetNamespace("MAPI"); open ( my $log, $ARGV[0] ) || print "Can't open $ARGV[0]\n"; while ( <$log> ) { chomp $_; my $file = "$_"; print "$file\n"; $namespace->AddStore ("$file"); } undef $ol; Roy Sprague, CISSP, MCSE, MCSA, HPASE Senior Network Specialist Landstar System Holdings, Inc. 904 390-4860 -----Original Message----- From: Bautista, Rodel D.(Digitel-GSM) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 1:07 AM To: PERL-WIN32-USERS; PERL-WIN32-USERS-A; perl-win32-users-admin Subject: Using Outlook in Win32::OLE Hi All, I'm currently creating a mail sending script that uses Win32::OLE via MS Outlook. I have already searched for an appropriate script but all that I can find are programs that do not automatically connect to our Exchange server. It asks first for a profile to use and then a logon dialog appears. I'll appreciate much if someone could direct me to a document or site where a detailed discussion of Win32::OLE using MS Outlook is located or can be found. TIA Rodel D. Bautista _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs