SMTP addresses from Distribution lists - best practice

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
 
S

Sue Mosher [MVP-Outlook]

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
 
A

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?
 
S

Sue Mosher [MVP-Outlook]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top