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

# MEMessageEncodingResult

An object that contains a signed or encrypted message, or errors that indicate failure to encode the message.

```
class MEMessageEncodingResult
```

## Topics

### Providing an Encoding Result

[`-  initWithEncodedMessage:signingError:encryptionError:`](/documentation/MailKit/MEMessageEncodingResult/init(encodedMessage:signingError:encryptionError:))

Creates an encoding result object with a signed or encrypted message, or errors if the message encoder fails to encode the message.

[`encodedMessage`](/documentation/MailKit/MEMessageEncodingResult/encodedMessage)

A signed or encrypted message, if the message security handler needs to encode the message.

[`encryptionError`](/documentation/MailKit/MEMessageEncodingResult/encryptionError)

An error that occurred while the message encoder encrypted the message.

[`signingError`](/documentation/MailKit/MEMessageEncodingResult/signingError)

An error that occurred while the message encoder signed the message.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

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

[`Equatable`](/documentation/Swift/Equatable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)