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();
In reply to Win32::OLE->new('Outlook.Application') Prob by mortbarsky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |