<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEEncodedOutgoingMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MEEncodedOutgoingMessage"
  },
  "title" : "MEEncodedOutgoingMessage"
}
-->

# MEEncodedOutgoingMessage

An object that contains the signed or encrypted representation of a message’s RFC 2822 data.

```
class MEEncodedOutgoingMessage
```

## Overview

When MailKit invokes your message security handler’s [`encode(_:composeContext:completionHandler:)`](/documentation/MailKit/MEMessageEncoder/encode(_:composeContext:completionHandler:)) method, it digitally signs and encrypts the message. After encoding the message data, create an instance of [`MEEncodedOutgoingMessage`](/documentation/MailKit/MEEncodedOutgoingMessage) to pass back to MailKit. Set the [`isSigned`](/documentation/MailKit/MEEncodedOutgoingMessage/isSigned) and [`isEncrypted`](/documentation/MailKit/MEEncodedOutgoingMessage/isEncrypted) values to indicate how you encoded the message.

## Topics

### Encoding Outgoing Messages

[`init(rawData:isSigned:isEncrypted:)`](/documentation/MailKit/MEEncodedOutgoingMessage/init(rawData:isSigned:isEncrypted:))

Creates an object that contains the outgoing message’s encoded data, and indicates if the encoder encrypted or signed the message.

[`isEncrypted`](/documentation/MailKit/MEEncodedOutgoingMessage/isEncrypted)

A Boolean value that indicates if the message encoder encrypted the message.

[`isSigned`](/documentation/MailKit/MEEncodedOutgoingMessage/isSigned)

A Boolean value that indicates if the message encoder signed the message.

[`rawData`](/documentation/MailKit/MEEncodedOutgoingMessage/rawData)

The encrypted, signed, or both encrypted and signed data for the outgoing message.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)