Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by cormanaz (Deacon)
on Jul 26, 2008 at 21:13 UTC ( [id://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.

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
    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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found