Switching between IDs using VB 6.0
I have created a program to send e-mails using Lotus Notes 5.0.10. I am sending the mail from a specific mail ID. The class that I am using works fine if only one e-mail ID is configured on the system. But in the case of two or more e-mail IDs, there is a need to switch for that specific ID if I had the last login with some other ID. How it is possible to switch between IDs using VB 6.0?
You can use the NotesSession and registration classes to switch IDs.
Dim session As New NotesSession
Dim reg As New NotesRegistration
reg.RegistrationServer = "AceOne"
Call reg.SwitchToID("user.id", _ ' ID file
"AceHardware") ' ID password
Do you have comments on this Ask the Expert question and response? Let us know.
This was first published in September 2004