Ask the Expert

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("", _ ' 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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: