SendAndSaveCopyWithWellKnownFolder method

Future<void> SendAndSaveCopyWithWellKnownFolder(
  1. WellKnownFolderName destinationFolderName
)
Sends this e-mail message and saves a copy of it in the specified folder. SendAndSaveCopy does not work if the message has unsaved attachments. In that case, the message must first be saved and then sent. Calling this method results in a call to EWS. The name of the folder in which to save the copy.

Implementation

Future<void> SendAndSaveCopyWithWellKnownFolder(
  WellKnownFolderName destinationFolderName,
) async {
  await _InternalSend(
    FolderId.fromWellKnownFolder(destinationFolderName),
    MessageDisposition.SendAndSaveCopy,
  );
}