in reply to Win32::OLE & Outlook getting the actual email addresses
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::OLE & Outlook getting the actual email addresses
by blahblahblah (Priest) on Jul 27, 2008 at 15:51 UTC |