<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "MessageUI"
  },
  "title" : "Message UI"
}
-->

# Message UI

Create a user interface for composing email and text messages, so users can edit and send messages without leaving your app.

## Overview

The Message UI framework provides specialized view controllers for presenting standard composition interfaces for email and SMS (Short Messaging Service) text messages. Use these interfaces to add message delivery capabilities, without requiring the user to leave your app.

To display a composition interface, present the corresponding view controller modally from your app. Once presented, the user has the option to customize the contents before sending or canceling the message. Your custom delegate object then handles the dismissal of the view controller based on the user’s action. For information on how to present and dismiss view controllers, see [View Controller Programming Guide for iOS](https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/index.html#//apple_ref/doc/uid/TP40007457).

> Important:
> The view controllers in this framework provide methods for determining if you can send a given message type on the current iOS device. If you can’t send a message, don’t display the corresponding view controller.

## Topics

### Email composition interface

[`MFMailComposeViewController`](/documentation/MessageUI/MFMailComposeViewController)

A standard view controller, whose interface lets the user manage, edit, and send email messages.

### Message composition interface

[`MFMessageComposeViewController`](/documentation/MessageUI/MFMessageComposeViewController)

A standard view controller whose interface lets the user compose and send SMS or MMS messages.



---

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)
