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

# MEMessageEncoder

An object that encrypts or digitally signs outgoing messages.

```
protocol MEMessageEncoder : NSObjectProtocol
```

## Topics

### Instance Methods

[`-  encodeMessage:composeContext:completionHandler:`](/documentation/MailKit/MEMessageEncoder/encode(_:composeContext:completionHandler:))

[`-  getEncodingStatusForMessage:composeContext:completionHandler:`](/documentation/MailKit/MEMessageEncoder/getEncodingStatus(for:composeContext:completionHandler:))

## Relationships

### Inherited By

[`MEMessageSecurityHandler`](/documentation/MailKit/MEMessageSecurityHandler)

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)