C++ API - Bypass the Password prompt

I am new to this forum and this quesion may already have been answered before.

I am trying to write a Windows Service to send outgoing email using the Lotus Notes API - However, whenever I call the LNNotesSession.Init() method I get password prompt.

How do I get to Initialize the session so that I do not get password prompt?

Any pointers will be appreciated.

Mohan

Subject: EM_GETPASSWORD

The most generic technique involves intercepting the Notes password prompt with the EM_GETPASSWORD extension manager hook. This might not work in your specific environment, but it might be worth investigation.

Subject: RE: EM_GETPASSWORD

This works great for me. I used the extpwd sample from the CAPI to add the extnsion manager hook.The only problem that I foresee is keeping the password.txt file in synch with the Notes Password.

Mohan

Subject: RE: EM_GETPASSWORD

why not give sso a try? you only need have to make shure it matches your domain/windows pwd.

and users get prompted “your password does not match, please change…”.

this way you do not loose security (at least its more secure than using textfiles:)

Subject: RE: EM_GETPASSWORD

this way you do not loose security (at least its more secure than using textfiles:)

I would be loathe to argue that Windows network passwords provide more security than text files. :wink:

Subject: C++ API - Bypass the Password prompt

The easiest way is to clear your Notes ID password.

Or…start the Notes client and select “Don’t prompt a password from other Notes-based programs” in User Security dialog.