我需要在Microsoft交换服务代码中设置EmailMessage对象的Accept / Decline。 消息发件人希望接收者对消息做出响应的地方。
EmailMessage emailMessage = new EmailMessage(service);
EmailMessage.Subject = "test";
EmailMessage.ToRecipients.Add("destination@domain.com");
EmailMessage.Body = new MessageBody("test");
ExtendedPropertyDefinition PidTagResponseRequested = new ExtendedPropertyDefinition(0x0063000B, MapiPropertyType.Boolean);
EmailMessage.SetExtendedProperty(PidTagResponseRequested, 1);
EmailMessage.SendAndSaveCopy();