<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEComposeSessionError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "s:SC25MEComposeSessionErrorCodeLeV"
  },
  "title" : "MEComposeSessionError"
}
-->

# MEComposeSessionError

An error that indicates the compose session is in an erroneous state.

```
struct MEComposeSessionError
```

## Topics

### Indicating Erroneous States

[`static var invalidBody: MEComposeSessionError.Code`](/documentation/MailKit/MEComposeSessionError/invalidBody)

An error that indicates the message’s body is invalid.

[`static var invalidHeaders: MEComposeSessionError.Code`](/documentation/MailKit/MEComposeSessionError/invalidHeaders)

An error that indicates one or more of the message’s headers are invalid.

[`static var invalidRecipients: MEComposeSessionError.Code`](/documentation/MailKit/MEComposeSessionError/invalidRecipients)

An error that indicates one or more of the message’s recipients are invalid.

[`let MEComposeSessionErrorDomain: String`](/documentation/MailKit/MEComposeSessionErrorDomain)

A constant for the compose session error domain.

### Inspecting Error Information

### Comparing Errors

### Type Properties

[`static var errorDomain: String`](/documentation/MailKit/MEComposeSessionError/errorDomain)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)