简体   繁体   English

如何在Outlook 2013中的约会时间之前24小时向约会的参与者(不是共享日历的所有者)发送提醒?

[英]How to send reminder to attendee of the appointment (not the owner of shared calendar) 24 hr before the appointment time in outlook 2013?

I am creating a windows application in C# for setting appointments in a shared calendar for my team. 我正在用C#创建Windows应用程序,用于为我的团队在共享日历中设置约会。 I am the owner of the calendar. 我是日历的所有者。 I have written the code to set the appointment and set reminder time as 24 hrs before the meeting. 我已经编写了代码来设置约会并将提醒时间设置为会议开始前24小时。 But instead of sending reminder to attendee it is sending reminder to me. 但是,不是向与会者发送提醒,而是向我发送提醒。 I am using Microsoft.Office.Interop.Outlook for this. 我为此使用Microsoft.Office.Interop.Outlook。 Here is the code that I used: 这是我使用的代码:

Outlook.Application oApp = new Outlook.Application();

// Get the NameSpace and Logon information.
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");

// Get the Calendar folder.
Outlook.Recipient rcip = oNS.CreateRecipient("abc@domain.com");
Outlook.MAPIFolder oSharedCal = oNS.GetSharedDefaultFolder(rcip, Outlook.OlDefaultFolders.olFolderCalendar);
Outlook.MAPIFolder oShiftCal = oSharedCal.Folders["Sample"];
// Get the Items (Appointments) collection from the Calendar folder.
Outlook.Items oItems = oSharedCal.Items;
Outlook.AppointmentItem oAppt = (Outlook.AppointmentItem)oItems.Add();

// Set Appointment properties.
oAppt.Subject = Subject;
oAppt.Start = start;
oAppt.End = end;
oAppt.RequiredAttendees = email;
oAppt.ReminderMinutesBeforeStart = 24 * 60; 
oAppt.ReminderSet = true;
oAppt.BusyStatus = Outlook.OlBusyStatus.olFree;

//Show the item to pause.
oAppt.Save();
oAppt.Send();

Can anyone help me with this? 谁能帮我这个?

不能为与会者设置提醒,它们是您在创建日历时使用的约会副本。与会者可以在接受会议请求时为自己设置提醒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM