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



我正在用 C# 创建一个 Windows 应用程序,用于在共享日历中为我的团队设置约会。我是日历的所有者。我已经编写了代码来设置约会并将提醒时间设置为会议前 24 小时。但是,它不是向与会者发送提醒,而是向我发送提醒。我正在使用Microsoft.Office.Interop.Outlook。这是我使用的代码:

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();

谁能帮我解决这个问题?

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

最新更新