Q

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

Dig deeper on Lotus Notes Domino Application Development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close