通过c发送预约邀请到lotus notes 8.5客户端#

问题描述:

我使用的是Interop.Domino.dll,能够通过C#代码发送邮件给lotus notes 8.5用户。 现在我想通过C#代码向用户发送预约调用。通过c发送预约邀请到lotus notes 8.5客户端#

这是我的代码。

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", "[email protected]"); 
       oNotesDocument.ReplaceItemValue("From", "[email protected]"); 
       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。 谢谢

+2

这使我想到一个相关的问题:“有多少组织仍在使用Lotus Notes?”我想标记这个'wtf-is-lotus-notes',但杀死的乐趣总是编辑那些东西。 – Dave 2010-07-29 12:41:10

+0

希望我有机会改变它的男人......我们试图将它与分享点整合,认为我的工作有多难:) – cranfan 2010-07-29 12:54:27

+0

我感到你的痛苦。我支持的一个系统有W95客户端。 – Dave 2010-07-29 13:02:06

当预约表单打开时,使用“EnterSendTo”字段让用户输入会议的与会者。我相信一旦发送会议,它就会被翻译成文件中的“RequiredAttendees”项目。

从你的代码,你可以尝试:

oNotesDocument.ReplaceItemValue("EnterSendTo", "[email protected]"); 

将在调用ComputeWithForm之前,它应该工作。否则,请尝试替换RequiredAttendees项目的值并查看是否有效。

或者,您可以使用iCal格式发送日历条目。对SO的快速搜索引起了我的这个问题:Creating iCal Files in c#。看起来有一个体面的C#类库可以用来生成iCal文件,Domino邮件应该可以识别它们。