PDA

Click to See Complete Forum and Search --> : Problems w/Opening Lotus Notes to Send an Email


OhYeahLach
Jun 18th, 2001, 09:42 AM
I am using the code below to send an email through Lotus Notes. I am having a problem with opening Notes on a particular PC. In most cases, when executing the Set Session = CreateObject("Notes.NotesSession") line without Notes open, it returns an Err of 429 which I can handle no problem. On this particular PC, the Set Session = CreateObject("Notes.NotesSession") line opens Notes up without Err 429 and stays on that line of code because it's waiting for the password to be opened. I have code to enter the password, but it never gets there. I keep getting a Component Request Pending msgbox before it will continue. I tried using app.OLEServerBusyTimeout and app.OLEServerBusyRaiseError but didn't seem to work.

Why does Set Session = CreateObject("Notes.NotesSession") work on some PC's? How do I get around this, the code will not continue with this pending ActiveX.

CODE:
SessionCreated = True
Set Session = CreateObject("Notes.NotesSession")
If SessionCreated Then
EnterPassword
End If
Set Database = Session.GetDatabase("", "")
ServerDown:
Call Database.OPENMAIL
Set Doc = Database.CreateDocument

JRoque
Jun 18th, 2001, 10:59 PM
Weird huh? Try turning on password sharing:

1. Choose File - Tools - User ID.
2. Click Basics.
3. Select "Don't prompt for a password from other Notes-based programs."

Later,

Julio

OhYeahLach
Jun 19th, 2001, 10:49 AM
The password stilled showed up? Is there any way to change the Notes options to error on Set Session = CreateObject("Notes.NotesSession") ?

JRoque
Jun 19th, 2001, 12:46 PM
Going out on a limb here but check the Notes version on that client; if it's R5 it should be at least 5.04. A Notes client reinstall might help also as it appears that some .dll is not properly registered. One last thing, does this client have the "Notes Minder" running? That might be keeping the session open and not returning the 429 error.

If none of this helps, try http://www.notes.net

Cheers,

Julio

jcm900
Sep 25th, 2001, 07:36 AM
I have found this stupid little fix works, but only for Windows 2000:

Copy the Notes.ini file from C:\Documents and Settings\USER\Data\Notes then paste it to C:\Program Files\Notes

Overwrite the existing Notes.ini or rename it in C:\Program Files Notes before you paste.

Note: Substitute the actual user ID folder for \USER\ in the first path.