I found the below example in a previous post. When I attempt to change
olFolderInbox to any other folder (i.e. olFolderStuff) it fails. Can someone
send me an example of how to do this or point me in the right direction?

When I try the change the folder name I get:

Win32::OLE(0.1601) error 0x80020005: "Type mismatch" in METHOD/PROPERTYGET
"GetDefaultFolder" argument 1


$Win32::OLE::Warn = 2;
my $OL = Win32::OLE-> GetActiveObject('Outlook.Application')  or die;
Win32::OLE-> LastError();
my $NameSpace = $OL-> GetNameSpace("MAPI");
my $Folder = $NameSpace-> GetDefaultFolder(olFolderInbox);



Regards, 

Chris


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to