<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMailComposeError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "s:SC22MFMailComposeErrorCodeLeV"
  },
  "title" : "MFMailComposeError"
}
-->

# MFMailComposeError

Mail composition errors.

```
struct MFMailComposeError
```

## Topics

### Errors

[`errorDomain`](/documentation/MessageUI/MFMailComposeError/errorDomain)

The domain for errors related to mail composition.

[`saveFailed`](/documentation/MessageUI/MFMailComposeError/saveFailed)

An error occurred while trying to save the email message to the drafts folder.

[`sendFailed`](/documentation/MessageUI/MFMailComposeError/sendFailed)

An error occurred while trying to queue or send the email message.

[`MFMailComposeError.Code`](/documentation/MessageUI/MFMailComposeError/Code)

Error codes for <doc://com.apple.documentation/documentation/Foundation/NSError> objects that are associated with the mail composition interface.

### Error Configuration

[`errorDomain`](/documentation/MessageUI/MFMailComposeError/errorDomain)

The domain for errors related to mail composition.



---

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)