SMTP addresses from Distribution lists - best practice

  • Thread starter Thread starter Andy Max Jensen
  • Start date Start date
A

Andy Max Jensen

Hi,

I would like to retreive all names and smtp addresses from a Distribution
List in the default Contact folder.

But I'm really not sure how to do this the best way.

If I got it right; cdo.dll is not nessesarily installed with Office /
Windows and the Jet providers is not nessesarily available either!?

Using the Outlook object model is reallly slow.

How would you handle this? And how would you resolve the SMTP addresses?

Thanks!

Andy Max Jensen
 
Quick and dirty method -- Use the SaveAs method to save the DL as a text
file, then parse that file.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Hi,

I would like to retreive all names and smtp addresses from a Distribution
List in the default Contact folder.

But I'm really not sure how to do this the best way.

If I got it right; cdo.dll is not nessesarily installed with Office /
Windows and the Jet providers is not nessesarily available either!?

Using the Outlook object model is reallly slow.

How would you handle this? And how would you resolve the SMTP addresses?

Thanks!

Andy Max Jensen
 
So far so good. I still need to resolve those EX addresses to SMTP addresses
though...

Is there a best practice for this?
 
If you have EX addresses, then you'll have to get the SMTP address with CDO
or, to avoid security prompts, Redemption. You can create a Recipient using
the EX address in a dummy mail message, resolve it, then get the SMTP
address from the fields on the AddressEntry. There's sample code for gett
ing the SMTP at http://www.cdolive.com

Probably other ways to do it, too.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers




So far so good. I still need to resolve those EX addresses to SMTP addresses
though...

Is there a best practice for this?
 
Back
Top