发送约会邀请到Lotus通过C#8.5笔记客户 [英] send appointment invitation to lotus notes 8.5 clients via c#

查看:304
本文介绍了发送约会邀请到Lotus通过C#8.5笔记客户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Interop.Domino.dll并能够通过C#代码发送邮件到Lotus Notes 8.5的用户。
现在我想通过C#代码约会invations发送给用户。

i am using Interop.Domino.dll and able to send mail via c# code to lotus notes 8.5 users. now i want to send appointment invations to users via c# code.

下面是我的代码。

   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上谁属性,但它没有工作那样。
谢谢

i am able to send invitation but i wasn'T able to fill the attendees on who part of a lotus notes appointment form. will appreciate help on this. Infact i need ReplaceItemValue on who property but it didn't work like that. Thanks

推荐答案

在EnterSendTo字段用于当预约形式是开放的让用户输入与会者的会议。我相信,被转换到上一次会议发出的文件的RequiredAttendees项目。

The "EnterSendTo" field is used when the appointment form is open to let the user enter the attendees for the meeting. I believe that gets translated to the "RequiredAttendees" item on the document once the meeting is sent.

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

From your code you could try:

oNotesDocument.ReplaceItemValue("EnterSendTo", "xx@xx.com");



把该调用ComputeWithForm之前,它应该工作。否则,请尝试更换RequiredAttendees项的值,看看是否有效。

Put that before the call to ComputeWithForm and it should work. Otherwise, try replacing the value of the RequiredAttendees item and see if that works.

另外,您也可以发送使用iCal格式的日历条目。在SO快速搜索使我这个问题: http://stackoverflow.com/questions/10658 /创建-的iCal - 文件 - 在-C 。这似乎在说明,你可以用它来生成的iCal文件,一个体面的C#类库和Domino邮件认出他们。

Alternatively, you could send calendar entries using the iCal format. A quick search on SO led me to this question: http://stackoverflow.com/questions/10658/creating-ical-files-in-c. It appears there is a decent C# class library you could use to generate iCal files, and Domino mail should recognize them.

这篇关于发送约会邀请到Lotus通过C#8.5笔记客户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆