views:

59

answers:

2

I am looking for a way to access Lotus Notes to get the program to pop a new email for me to enter recipient, subject, and body information. Does anyone know of a way to shell a command to Lotus Notes to get the email window to open? I am trying to do this using c#

+2  A: 

Ok my initial comment didn't seem to get you to find the answer. So here is the link that I found at the second spot: Send Lotus Notes Email Using C#

spinon
Thanks. I have never used tinyurl.com before.
+2  A: 

For anyone who finds this while searching:

The linked code in spinon's answer isn't bad as "outsider" code goes, but there are a couple of problems. First, there's a native way to add new lines to a rich text item:

rtItem.addNewLine(1);

(where the "1" is the number of returns you wish to add). Notes is hugely cross-platform, so the carriage return + line feed is just a couple of "junk" characters -- it doesn't actually create a new paragraph object. That's not a bad thing in the code sample posted, but it may wind up putting you over the paragraph size limit if you are creating something long and complicated.

Second, failing to use Marshall.ReleaseCOMObject() to dispose of the Domino objects (particularly the database and the session) will leave bound memory objects in Notes.

Last, don't kill nsd.exe -- that is the Notes System Diagnostic (the crash routine, which was probably trying to do a stack and frame dump at the time). And with NSD, you no longer need to resort to anything like KillNotes -- call nsd /kill instead.

Stan Rogers