how to prevent the resolve dialog when adding a member to a DL with 2 email addresses?

R

Ronald van Aalten

Hi All,

When I use the following code to add a member who has 2 email
addresses to a (Redemption) distributionlist then Outlook displays a
'Resolve' dialog asking me which contact I want to add.
----------
Set oredRec = oredMail.Recipients.Add("John Doo")
oredRec.Resolve True
oredDL.AddMember oredRec
---------
There are two John Doos:
John Doo ([email protected])
John Doo ([email protected])

I want to add the first John WITHOUT seeing the resolve dialog but:
 
K

Ken Slovak - [MVP - Outlook]

Have you tried using Redemption's SafeDistList AddMember or AddMemberEx
methods? I'm not sure if they would also create a one-off recipient however.
Try AddMember using the SMTP address you want used. If that doesn't do what
you want try AddMemberEx using the name, address and type arguments.
 
R

Ronald van Aalten

Hi Ken,

Yes I use a SafeDistList and tried with the SMTP address. Also:
AddMemberEx creates a one-off recipient by default according to
Dmitry. Nothing works.

Ronald
 
K

Ken Slovak - [MVP - Outlook]

Then I'm out of ideas. You might have to live with one-off recipients in
that case.
 

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