Forward method

Future<void> Forward(
  1. MessageBody bodyPrefix,
  2. Iterable<EmailAddress> toRecipients
)
Forwards the appointment. Calling this method results in a call to EWS. The prefix to prepend to the original body of the message. The recipients to forward the appointment to.

Implementation

Future<void> Forward(
  MessageBody bodyPrefix,
  Iterable<EmailAddress> toRecipients,
) async {
  ResponseMessage responseMessage = CreateForward();

  responseMessage.BodyPrefix = bodyPrefix;
  responseMessage.ToRecipients.AddRange(toRecipients);

  await responseMessage.SendAndSaveCopy();
}