encodeToInternetMessageData

open override fun encodeToInternetMessageData(from: String, to: List<String>, cc: List<String>?, bcc: List<String>?, subject: String?, body: String?, attachments: List<EmailAttachment>?, inlineAttachments: List<EmailAttachment>?, isHtml: Boolean, encryptionStatus: EncryptionStatus, replyingMessageId: String?, forwardingMessageId: String?): ByteArray

Encode an email message to a ByteArray of data.