Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Win32::OLE & Outlook getting the actual email addresses

by cormanaz (Chaplain)
on Jul 26, 2008 at 21:13 UTC ( #700321=note: print w/replies, xml ) Need Help??

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:

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" }
then you get the addresses and names of the individual recipients.

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.


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
    If you can't find a way get those contact's SMTP addresses from Outlook, you could probably look them up in Exchange with Net::LDAP.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://700321]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2021-04-21 02:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found