Different notes.ini / ID files on one machine - how to pick up the correct one with Domino?

The problem is the following:
An application is installed on a Citrix server and uses the domino objects to send emails.
Different Notes profiles are installed on the Citrix box and when different NT users log in and open Notes, it picks up the correct ID file (ie if japanese users: the japanese ID file, if european users: the european id file). All the id files are installed on different paths (ie Notes\Japan\, Notes\Europe\).
When trying to send email via the application (using domino objects), the id file picked up is the default one and not the one allocated to the user.

The code used is the following, it cannot be changed and we know it is working at another client with similar installation:

    Set m_objNotesSession = New NotesSession
    m_objNotesSession.Initialize strPassword
    Set m_objNotesDbDirectory = m_objNotesSession.GetDbDirectory("")
    Set m_objNotesDatabase = m_objNotesDbDirectory.OpenMailDatabase

What could be changed to the set up so that the domino objects pick up the correct file according to the NT user who logs in (as Notes does correctly). We tried changing the PATH environment variable to force it to use another file but the application/Domino object still accesses the default one.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi jspriet,

Make sure there is no INI file in the eecutable or data directories (e,g., not in C:\Program Files\Lotus\Motes and not in C:\Program Files\Lotus\Notes\data).  There should also be no INI file in the "current folder" for your executable, unless that folder contains teh INI you wish to use.

Then, make sure there is a single INI in the path.

Also, what version are you using?  If you have 6, are you using Roaming Profiles or a multi-user installation?

Best regards,
FYI, this beongs as much in the other Lotus Notes topic as in the admin one.  You might get some additional exposure there by putting in a low-point question pointing to this question.
Hi jspriet,
One option is to set a home directory on your Citrix box for each of the users that login. For example,  John Smith logs on, his home dir is c:\user profiles\jsmith in there would be his notes.ini and id file. This ensures that the correct user gets the write files and there is security at the directory level and at the id password level.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Scott, your name sounds familiar.  Have we met before?
qwaletee, I'm not sure. Guess that would depend where you work and/or have worked. Peek my profile and see if there are any familiar companies or projects there.
I've alwys been NYC area.  I see you've done stuff in VA and CA.  Haven't really been to either much.  COuld have been Lotusphere, I suppose.

Give it to scarelli.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.