I don't have anything general. It's fairly straightforward. The array starts at 0; just iterate through it to make sure it doesn't have the entry you're trying to add, then increase the size of the array by one and add the new address. Then save it back.
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 Veld, Paul Sent: Wednesday, March 26, 2003 8:09 PM To: Exchange Discussions Subject: RE: Change the primary SMTP address using VBscript Any chance you might still have some code floating around that you would be willing to share???? -----Original Message----- From: Ed Crowley [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 March 2003 1:47 PM To: Exchange Discussions Subject: RE: Change the primary SMTP address using VBscript 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] _________________________________________________________________ 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]

