473,327 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Develop a plug in in c#.net to read lotus notes mail

Hi,

Can anybody tell me how to develop a plug in in c#.net to read the lotus note mail.
I am a newbie in c#.net.

Thanks in advance.
Tan
Aug 26 '08 #1
4 6458
Plater
7,872 Expert 4TB
A plugin for what program?
Aug 26 '08 #2
Hi,

I want to develop plugin for IBM lotus notes mail client using c#.net(language).

Thanks

A plugin for what program?
Aug 27 '08 #3
Plater
7,872 Expert 4TB
Do you have access to the lotus note API? Have you checked with IBM/lotus notes? They would have more documentation on it then we would.
Aug 27 '08 #4
NotesSession session = new NotesSession();
Console.WriteLine("Enter password:");
string sPassword = Console.ReadLine();
session.Initialize(sPassword);
NotesDbDirectory dir = session.GetDbDirectory("NTBHub/NTB");
NotesDatabase db = dir.OpenMailDatabase();

if (!db.IsOpen)
{
Console.WriteLine("Unable to open mail db");
}


NotesView mailView = db.GetView("($Inbox)");
NotesDocument nDoc = mailView.GetLastDocument();
StreamWriter writer = new StreamWriter("C:/mail.txt");

NotesViewEntryCollection NotVewentcol;
try
{
while (nDoc != null)
{

NotesItem item = nDoc.GetFirstItem("From");
if (item != null)
{
writer.WriteLine("From: " + item.Text);
}


item = nDoc.GetFirstItem("Subject");
if (item != null)
{
writer.WriteLine("Subject: " + item.Text);
}

item = nDoc.GetFirstItem("Body");
if (item != null)
{
writer.WriteLine("Text:");
writer.WriteLine(item.Text);
}

object[] items = (object[])nDoc.Items;

foreach (NotesItem nItem in items)
{
if (nItem.Name == "$FILE")
{
string fileName = ((object[])nItem.Values)[0].ToString();
NotesEmbeddedObject attachedfile = (NotesEmbeddedObject)nDoc.GetAttachment(fileName);

if (attachedfile != null)
{
attachedfile.ExtractFile("C:\\test\\" + fileName);
}
}
}

writer.WriteLine("\n");

nDoc = mailView.GetPrevDocument(nDoc);
}

}
catch (Exception)
{

}

try
{
timer1.Enabled = true;
this.Hide();
}
catch
{

throw;

}
Dec 14 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Manuela | last post by:
Hi, I would want connetting to Db Domino for custom export Mail Folder of Lotus Notes to Exchange/Outlook. It is possible from .net? c# i.e? through ODBC or? Thks
5
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a...
1
by: Nicole | last post by:
Hello! I hope there is someone out there who can shed some light on this for me. I have a module that is supposed to look at an access table, pull out each bid record, link to another table to...
4
by: navyliu | last post by:
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!
3
by: Pav | last post by:
Hi, I am developing a small Intranet web application which needs to send mails to our coporate Ids. I am using CDONTS, But my mails never leave Que folder. Not able to find out what the...
2
by: madmak | last post by:
Hi, I am a noob with PHP and need some asistance regarding PHP and lotus notes. I am trying to create a multipart message in PHP to send mail via lotus notes. Here is the code snippet. ...
3
by: =?Utf-8?B?SmFtZXNU?= | last post by:
I can create a message and send it via my btopenworld account but is the method the same when using Lotus Notes. I have no experience of Lotus Notes whatsoever. I have never seen it at all. ...
0
by: kohligagan2 | last post by:
Hi, I am working on a scenario . And scenario is I am trying to send an Email using my Lotus notes Client Id ( Lotus notes :- is used for messaging and sending mails work as a middleware) I...
5
by: kimvyp | last post by:
how to establish plug - in from sugarcrm to lotus notes using php? how to archive and extract the nsf files of lotus notes to sugarcrm?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.