我需要在Microsoft Exchange服务代码中设置Accept / Decline EmailMessage对象

时间:2018-10-16 17:26:05

标签: c# exchangewebservices exchange-server-2013

我需要在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();

0 个答案:

没有答案