mortbarsky has asked for the wisdom of the Perl Monks concerning the following question:
I have a slight problem starting outlook 11 with
The issue I have is the script runs on a system with outlook 10 (albeit with the security pop-up), but not on the system with outlook 11. Anyone with any idea as to what's up? Code below...... Thanks,Win32::OLE->new('Outlook.Application')
Mort
#!/usr/bin/perl -w use Win32::OLE; use Win32::OLE::Const 'Microsoft Outlook'; my $outlook = Win32::OLE->new('Outlook.Application'); my $MailItem = $outlook->CreateItem(olMailItem); my $objOutlookRecip = $MailItem->Recipients; $objOutlookRecip->Add("Rich"); my $recip = $objOutlookRecip->Add("Rich"); $recip->{Type} = olCC; $objOutlookRecip->ResolveAll(); $MailItem->{Subject} = "$Info{Customer} / Part No: " . $Info{'Part Num +ber'} . ", Rev. $Info{Rev} / Catalog Number $ENV{JOB}"; $MailItem->{Body} = " !!!Traveler change request!!!\n\n" . "$Info{Customer} " . $Info{'Part Number'} . " Rev $Info{Rev} \n\n" . "\n"; $MailItem->Display();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE->new('Outlook.Application') Prob
by NetWallah (Canon) on May 31, 2008 at 05:28 UTC | |
by Anonymous Monk on May 31, 2008 at 08:13 UTC |