Reply method

Future<void> Reply(
  1. MessageBody bodyPrefix,
  2. bool replyAll
)
Replies to the message. Calling this method results in a call to EWS. The prefix to prepend to the original body of the message. Indicates whether the reply should be sent to all of the original recipients of the message.

Implementation

Future<void> Reply(MessageBody bodyPrefix, bool replyAll) async {
  ResponseMessage responseMessage = CreateReply(replyAll);

  responseMessage.BodyPrefix = bodyPrefix;

  await responseMessage.SendAndSaveCopy();
}