encodeToInternetMessageData

abstract fun encodeToInternetMessageData(from: String, to: List<String>, cc: List<String>? = null, bcc: List<String>? = null, subject: String? = null, body: String? = null, attachments: List<EmailAttachment>? = null, inlineAttachments: List<EmailAttachment>? = null, isHtml: Boolean = false, encryptionStatus: EncryptionStatus = EncryptionStatus.UNENCRYPTED, replyingMessageId: String? = null, forwardingMessageId: String? = null): ByteArray

Encode an email message to a ByteArray of data.