That attribute contains all addresses, not just SMTP ones.  I have
scripted the addition of custom addresses, like X500, for example.

Ed Crowley MCSE+Internet MVP
Freelance E-Mail Philosopher
Protecting the world from PSTs and Bricked Backups!T


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phillips, Alan
Sent: Wednesday, March 26, 2003 8:35 AM
To: Exchange Discussions
Subject: RE: Change the primary SMTP address using VBscript


> I use ADSI for these things.  The proxyAddresses attribute is
> an array.
> Code I've written manipulates the entries in the array.  Be 
> sure not to
> put the same address in twice--ADSI doesn't like that and 
> you'll get the
> typical useless error message.

Do you ever encounter problems when the mailbox has a *custom* address
(X500 or any invent-your-own) associated with it, Ed? C++ code I have
here using IMailRecipient::put_ProxyAddresses to set the addresses works
perfectly if there are no custom addresses, but fails E_UNEXPECTED
(0x8000ffff "Catastrophic failure") if there is even one.....

I haven't had any response to queries about this on the ADSI developers
news group, so I really suspect I'm doing something so stupid I can't
see it....

I'd love to know if I'm the only person in the world to see this. Should
I be using IADsUser::PutEx instead of the E2K interfaces, I wonder?? I'd
love to know what Users&Computers does here...

Alan

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to