How to send Lotus Notes Email Via C#

  • Thread starter Thread starter navyliu
  • Start date Start date
N

navyliu

I want send Lotus Notes Email automatic in my Application.I googled this
topic but I can't find the solution.
Does anyone have ever use this function?Can you give me some advice? Thanks
a lot!
 
Hello navyliu,

I found this interesting because I used to do similar things when I was
still using Delphi, so I had a look around and found a number of things.
First, there's IBM's Lotus developer area with a number of downloads here:

http://www-128.ibm.com/developerworks/lotus/downloads/toolkits.html

There's also a link there to the developer forums, which I found a good
resource back when I was doing this. I couldn't see a .NET specific
download there, but at least they still have the C/C++ API, so it should
be pretty easy to make use of that, if necessary.

The .NET thing seems to be provided in pretty comprehensive form by a 3rd
party, if you're willing to go that way. A company called Proposion has an
interface component/library for .NET. Info is here:

http://www.proposion.com/N2NV3

Hope this helps!


Oliver Sturm
 
To send the mail message, the application does the following:

1.. Instantiates the NotesSession object.
2.. Instantiates the NotesDatabase object with the specified server
database.
3.. Creates a new NotesDocument object through the NotesDatabase object.
4.. Populates fields in the document with values from the form.
5.. Creates a new NotesRichTextItem object through the NotesDocument
object for the body of the mail message.
6.. Adds text from the form to the NotesRichTextItem.
7.. Sends the email message through the NotesDocument Send method.
8.. Sets the Label control to be displayed accordingly if the message is
sent. (Otherwise, an error message is displayed if an exception is
encountered. The whole operation is enclosed in a try block.)

Using COM isn't limited to Windows applications. You can use it in Web or
other application types as well.
 
navyliu said:
I want send Lotus Notes Email automatic in my Application.I googled this
topic but I can't find the solution.
Does anyone have ever use this function?Can you give me some advice? Thanks
a lot!

What I did (back in my C# days) was write a small application in Java
that I could call from C#. There are some really great Java libraries
for Lotus Notes that are really well documented. They also include
support for calendaring and the Lotus Notes database. C# is a WHOLE
lot like Java (almost like they borrowed the language from Java, hrmm)
and writing Java code from a C# coders standpoint is easy.
 
Back
Top