Kenneth Lodahl (KELO, ITRC, SH) wrote, on Friday, July 25, 2003 6:09 AM : I have a problem with MAPI. On my production server the script : is working like a charm, but on my test server this error message : comes when the script is executed. : "Can't call method "logon" on an undefined value" : $MAPI = new Win32::OLE "MAPI.Session" || die "couldn't open MAPI-session...!";
Please post in plain text; it makes it easier to reply. Thanks. The problem is probably using "||" instead of "or". "||" has a higher precedence than "new", so it's not calling die() when it fails. Good luck, Joe ============================================================== Joseph P. Discenza, Sr. Programmer/Analyst mailto:[EMAIL PROTECTED] Carleton Inc. http://www.carletoninc.com 574.243.6040 ext. 300 fax: 574.243.6060 Providing Financial Solutions and Compliance for over 30 Years ***** Please note that our Area Code has changed to 574! ***** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs