how to verify an account whether exists in GAL?

G

Guest

I use OUTLook 2003. Is there a way to verity an account whether exist in
GAL(Golbal Address List) by BV or VBA?
 
D

Dmitry Streblechenko

Call Namespace.CreateRecipient, then call Recipient.Resolve. Note that the
name could end up getting resolved by the address book providers other then
GAL (e.g. OAB).
To be able to resolve against a particular container (such as GAL), you need
to use Extended MAPI. Or <plug> wait for the next version of Redemption
</plug>.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
G

Guest

Is there other way to resolve a bad mail address or alias from outlook?
--
Developer
QA Dashboard
Microsoft China Development Centre


Dmitry Streblechenko said:
Call Namespace.CreateRecipient, then call Recipient.Resolve. Note that the
name could end up getting resolved by the address book providers other then
GAL (e.g. OAB).
To be able to resolve against a particular container (such as GAL), you need
to use Extended MAPI. Or <plug> wait for the next version of Redemption
</plug>.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
D

Dmitry Streblechenko

Using Outlook Object Model? You can create a message, call Recipients.Add,
then call either Recipient.Resolve or Recipients.ResolveAll. The result
however won't be any different from using Namespace.CreateRecipient

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

MicrolongR said:
Is there other way to resolve a bad mail address or alias from outlook?
 
G

Guest

I got an error when using recipient.resolve(). What's value returned for
Recipient.resolved() when the alias can't be resolved?
 
D

Dmitry Streblechenko

What was the error? You will need to catch the error and assume that the
name resolution was unsuccessful.
Recipient.Resolved will remain false.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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