prepareMultipartAlternativeMessage static method
MessageBuilder
prepareMultipartAlternativeMessage({
- TransferEncoding transferEncoding = TransferEncoding.eightBit,
Convenience method for initiating a multipart/alternative 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/alternative media subtype.
Implementation
static MessageBuilder prepareMultipartAlternativeMessage(
{TransferEncoding transferEncoding = TransferEncoding.eightBit}) {
return prepareMessageWithMediaType(MediaSubtype.multipartAlternative,
transferEncoding: transferEncoding);
}