Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / September 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ronald van Aalten - 28 Sep 2004 11:54 GMT
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 (John@doo.com)
John Doo (Jonnyboy@daa.com)

I want to add the first John WITHOUT seeing the resolve dialog but:
---------
Set oredRec = oredMail.Recipients.Add("John Doo (John@doo.com)")  
oredRec.Resolve false
---------
does NOT work; the recipient is One-Offed.
How do I do this?

Ronald van Aalten
Ken Slovak - [MVP - Outlook] - 28 Sep 2004 15:00 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi All,
>
[quoted text clipped - 19 lines]
>
> Ronald van Aalten
Ronald van Aalten - 29 Sep 2004 11:43 GMT
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

> 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.
[quoted text clipped - 24 lines]
> >
> > Ronald van Aalten
Ken Slovak - [MVP - Outlook] - 29 Sep 2004 16:23 GMT
Then I'm out of ideas. You might have to live with one-off recipients in
that case.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi Ken,
>
[quoted text clipped - 3 lines]
>
> Ronald
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.