|There's more than one way to do things|
"Type mismatch" Error While Using Win32:OLE for MS Outlookby dushyant (Acolyte)
|on Jul 03, 2015 at 07:30 UTC||Need Help??|
dushyant has asked for the
wisdom of the Perl Monks concerning the following question:
I am tring to download email attachments from Microsoft Outlook using Win32::OLE. But I stuck at initial level I don't even able to get outlook folder list. Please find below code I am using and Error I got.
I am using, 32 bit Straberry Perl ( perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x86-multi-thread-64int), OS (64 bit) = Windows 7 Enterprise Service Pack 1 Microsoft Outlook 2013
D:\Perl_Project\OutLook>test1.pl Win32::OLE(0.1712) error 0x80020005: "Type mismatch" in METHOD/PROPERTYGET "GetDefaultFolder" argument 1 at D:\Perl_Project\OutLook\test1.pl line 9. Can't call method "Folders" on an undefined value at D:\Perl_Project\OutLook\test1.pl line 15. D:\Perl_Project\OutLook>perl -v