in reply to Win32::OLE & Outlook getting the actual email addresses
Well after spending a couple of exciting hours hunting around in the Outlook API references, I think I got this partially figured out.
If you modify the above code like so:
then you get the addresses and names of the individual recipients.my $msg = $Folder->Items($i); my $nrecip = $msg->Recipients->Count; for my $j (1..$nrecip) { print "$j\t",$msg->Recipients($j)->Address,"\t",$msg->Recipients($ +j)->Name,"\n" }
I say this is a partial solution because if one of the recipients is someone on your exchange server, you get the exchange ID rather than an SMTP address. If anyone knows how to get the SMTP address instead, please let me know.
Steve
In Section
Seekers of Perl Wisdom