I can't help with actually doing this from VB (I use CDOEXM from C++), but if
you get an IMailRecipient interface on the user object, you simply set the
SMTPEmail property to change the primary SMTP address. (In C++ it's the
put_SMTPEmail method). The old primary address is demoted but left around.

Setting the proxy addresses by using the PutEx method on a user object can be
dangerous - there's no interlock to stop you doing things like setting two
primary addresses for a protocol, and you can get the attribute in a state that
will confuse Users&Computers. As far as I know it's best to use an
IMailRecipient interface for this, as it contains the Exchange-specific
attribute validations you need. (You do, of course, need the E2K Management
Tools at least on the machine running the code).

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]

Reply via email to