Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $outlook; eval {$outlook = Win32::OLE->GetActiveObject('Outlook.Application')}; die "Outlook not installed" if $@; unless (defined $outlook) { $outlook = Win32::OLE->new('Outlook.Application', sub {$_[0]->Quit;} +) or die "Cannot start Outlook"; } my $mailbox = seekFolder($outlook->Session, 'Mailbox - Mysurname, Myfi +rstname'); my $myfolder = seekFolder($mailbox, 'myfolder'); for (my $i = 1; $i <= $myfolder->Items->Count; $i++) { my $this_email = $myfolder->Items->Item($i); print "email text:" ,$this_email->Body, "\n:end text\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Outlook email dates
by bingos (Vicar) on Sep 20, 2011 at 09:26 UTC | |
by Anonymous Monk on Sep 20, 2011 at 09:38 UTC |