|
-
Jun 18th, 2001, 09:42 AM
#1
Thread Starter
Member
Problems w/Opening Lotus Notes to Send an Email
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
Last edited by OhYeahLach; Jun 18th, 2001 at 10:25 AM.
-
Jun 18th, 2001, 10:59 PM
#2
New Member
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
-
Jun 19th, 2001, 10:49 AM
#3
Thread Starter
Member
No GO
The password stilled showed up? Is there any way to change the Notes options to error on Set Session = CreateObject("Notes.NotesSession") ?
-
Jun 19th, 2001, 12:46 PM
#4
New Member
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
-
Sep 25th, 2001, 07:36 AM
#5
New Member
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.
VB 5.0 Enterprise
VB 6.0 Enterprise
Sybase
MSAccess
Windows 98 SE
Windows 2000 SR1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|