in reply to Getting message property from outlook mail item
You need to read more about the objects you're using. For eaxmple,
my $Item = $client_folder->Items;
should be
foreach my $Item (in $client_folder->Items) {
in is imported using use Win32::OLE qw( in );
Update: According to Errto,
my $Item = $client_folder->Items; my $last_email = $Item->GetLast();
is functionally correct, but would be more accurate as
my $Items = $client_folder->Items; my $last_email = $Items->GetLast();
or simply
my $last_email = $client_folder->Items->GetLast();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting message property from outlook mail item
by Errto (Vicar) on Jan 25, 2006 at 17:31 UTC | |
|
Re^2: Getting message property from outlook mail item
by Win (Acolyte) on Jan 25, 2006 at 17:26 UTC | |
by ikegami (Patriarch) on Jan 25, 2006 at 17:40 UTC |