---
title: MFMailComposeErrorDomain
framework: Message UI
role: symbol
role_heading: Global Variable
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 13.1+, visionOS 1.0+]
path: messageui/mfmailcomposeerrordomain
---

# MFMailComposeErrorDomain

The domain used for error objects that are associated with the mail composition interface.

## Declaration

```swift
let MFMailComposeErrorDomain: String
```

## Discussion

Discussion The error domain associated with NSError objects.

## See Also

### Responding to errors

- [MFMailComposeError](messageui/mfmailcomposeerror.md)
- [MFMailComposeError.Code](messageui/mfmailcomposeerror/code.md)
