prepareMultipartMixedMessage static method

MessageBuilder prepareMultipartMixedMessage({
  1. TransferEncoding transferEncoding = TransferEncoding.eightBit,
})

Convenience method for initiating a multipart/mixed message

In case you want to use 7bit instead of the default 8bit content transfer encoding, specify the optional encoding. You can also create a new MessageBuilder and call setContentType with the same effect when using the multipart/mixed media subtype.

Implementation

static MessageBuilder prepareMultipartMixedMessage(
    {TransferEncoding transferEncoding = TransferEncoding.eightBit}) {
  return prepareMessageWithMediaType(MediaSubtype.multipartMixed,
      transferEncoding: transferEncoding);
}