Tag: lotus notes

使用X-Unsent:1保存.eml文件不适用于Lotus Notes 8.5

使用以下内容创建的.eml文件在Outlook中正常工作,但是,当您使用Lotus Notes 8.5打开它时 – 它不会显示为草稿电子邮件。 它作为普通电子邮件出现,就像在收件箱中一样。 如果我尝试转发电子邮件,则图像部分会显示为红色X. 我需要创建一个草稿电子邮件,可以使用HTML正文在Outlook和Lotus Notes中打开。 有关如何为Lotus Notes创建.eml文件的任何建议? 我正在使用C#生成.eml文件。 X-Sender: test@localhost.com X-Receiver: Test@gmail.com X-Unsent: 1 MIME-Version: 1.0 From: test@localhost.com To: Test@gmail.com Date: 23 Jan 2017 11:42:31 +1100 Subject: Test subject Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Test body 感谢关于这一部分的任何指导。

日历条目中缺少“RepeatForUnit”项?

我正在访问RepeatForUnit来管理Lotus Notes中的“重复”。 String RepeatForUnit =(string)((object [])docCalendarDoc.GetItemValue(“RepeatForUnit”))[0]; 最初我为每日活动获得“D”,为每周获得“W”,为“每年”获得“Y”。 但是现在属性字段即使在日历中添加了重复之后也没有显示任何此值。它在Lotus Notes日历的属性列表中不可见,并且对于上面的代码显示“”(黑色条目)。 我不明白为什么会发生这种情况。任何人都可以帮助我吗?

如何从“$ File”项中获取附件值? 使用C#(Lotus Notes)

我试图访问附件名称forms“$ File”(Lotus Notes)。 NotesView inbox = _serverDatabase.GetView(“($Inbox)”); NotesDocument docInbox = inbox.GetFirstDocument(); NotesItem file = docInbox.GetFirstItem(“$File”); String fileType = file.type.ToString(); (获取包含附件的邮件的fileType值“ATTACHMENT”) 我没有得到解决方案: 如何从Notes邮件访问附件? 我得到了解决方案: object[] items = (object[])docInbox.Items; foreach (NotesItem nItem in items) { if (nItem.Name == “$FILE”) { NotesItem file = docInbox.GetFirstItem(“$File”); string fileName = ((object[])nItem.Values) [0].ToString(); NotesEmbeddedObject attachfile = (NotesEmbeddedObject)docInbox.GetAttachment(fileName); if (attachfile != null) […]

如何使用C#检查邮件读取或未读属性(Lotus Notes)

我想使用C#检查邮件读取和未读取属性。 即想要检查邮件是否被读取。 (使用Domino.dll)

c#生成的csv文件通过电子邮件发送到Lotus note中的电子邮件底部

我有这个问题,使用.NET SmtpClient通过电子邮件发送的CSV附件出现在电子邮件的底部,而不是Lotus Note中的附件。 我只是不知道如何解决它,我无法访问客户端计算机使调试非常困难。 我可以采取哪些可能的步骤以及我需要注意的可能的问题? 代码如下: var smtpClient = new SmtpClient { Host = ConfigurationManager.AppSettings[“smtpServer”], Port = Convert.ToInt32(ConfigurationManager.AppSettings[“smtpPort”]) }; var mailMessage = new MailMessage(); mailMessage.Attachments.Add(new Attachment(attachment, contentType)); //ContentType = “text/csv”; //attachment is the temp file disk path 谢谢。

Lotus Notes – 保存整个电子邮件eml c#

我需要导出(保存到)硬盘我的Lotus Notes电子邮件。 我想出了如何将附件保存到硬盘驱动器的方法,但我无法弄清楚如何保存整个电子邮件的方式。 下面的代码显示了我如何导出附件。 你能建议我如何修改它来保存电子邮件? PS-我是编程新手。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Domino; using System.Collections; namespace ExportLotusAttachments { class Class1 { public void ScanForEmails() { String textBox1 = “c:\\1”; NotesSession session = new NotesSession(); session.Initialize(“”); NotesDbDirectory dir = null; dir = session.GetDbDirectory(“”); NotesDatabase db = null; db = dir.OpenMailDatabase(); NotesDatabase NDb = […]

通过c#向Lotus Notes 8.5客户发送预约邀请

我正在使用Interop.Domino.dll并能够通过c#代码向Lotus Notes 8.5用户发送邮件。 现在我想通过c#代码向用户发送约会邀请。 这是我的代码。 oNotesDocument.ReplaceItemValue(“Form”, “Appointment”); oNotesDocument.ReplaceItemValue(“AppointmentType”, “3”); // meeting oNotesDocument.ReplaceItemValue(“Subject”, “Deneme Toplantı”); oNotesDocument.ReplaceItemValue(“CALENDARDATETIME”, StartDate); oNotesDocument.ReplaceItemValue(“StartDateTime”, StartDate); oNotesDocument.ReplaceItemValue(“EndDateTime”, EndDate); oNotesDocument.ReplaceItemValue(“StartDate”, StartDate); //oNotesDocument.ReplaceItemValue(“MeetingType”, “1”); oNotesDocument.ReplaceItemValue(“Required”, “xx\\xx.xx”); oNotesDocument.ReplaceItemValue(“SendTo”, “xx@xx.com”); oNotesDocument.ReplaceItemValue(“From”, “xx@xx.com”); oNotesDocument.ReplaceItemValue(“Principal”, “pr.incipal”); oNotesDocument.ReplaceItemValue(“Chair”, “erdem.tomus”); oNotesDocument.ReplaceItemValue(“Location”, “location test”); oNotesDocument.ReplaceItemValue(“Body”, an invitation”); oNotesDocument.ComputeWithForm(true, false); oItemValue = oNotesDocument.GetItemValue(“SendTo”); //Send the email oNotesDocument.Send(false, ref oItemValue); 我可以发送邀请,但我无法填写与会者关于莲花票据预约表格的哪一部分。 我将非常感谢您的帮助。 事实上,我需要在属性上使用ReplaceItemValue,但它不能像那样工作。 谢谢

使用C#从NSF文件中读取Lotus Notes文档和项目

如何从带有C#的NSF文件和interop.domino.dll的使用中获取 Lotus Notes收件箱中的所有Lotus Notes文档(例如邮件及其内容)? 我想使用以下代码段: Domino.NotesSession m_session = null; … this.m_session = new Domino.NotesSession(); this.m_session.Initialize(“”); Domino.NotesDatabase db = null; this.m_session.GetDatabase(“”, “C:\test.nsf”, false); Domino.NotesDocumentCollection col = db.AllDocuments; for (int i = 0; i < col.Count; ++i) { Domino.NotesDocument doc = col.GetNthDocument(i); … } 如何访问每个文档的项目? 例如,我想要主题,谁,日期,时间…… 如何通过文档的所有项目进行迭代? 我该如何提取附件? NotesSQL ODBC驱动程序是否是COM API的良好替代品?