<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIActivity/ActivityType-swift.struct/mail",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIActivityTypeMail"
  },
  "title" : "mail"
}
-->

# mail

A type of activity that posts the provided content to a new email message.

```
static let mail: UIActivity.ActivityType
```

## Discussion

When using this service, you can provide <doc://com.apple.documentation/documentation/Foundation/NSString> and [`UIImage`](/documentation/UIKit/UIImage) objects and <doc://com.apple.documentation/documentation/Foundation/NSURL> objects pointing to local files as data for the activity items.

To specify an <doc://com.apple.documentation/documentation/Foundation/NSData> object, you must implement the [`UIActivityItemSource`](/documentation/UIKit/UIActivityItemSource) protocol, return the data object in [`activityViewController(_:itemForActivityType:)`](/documentation/UIKit/UIActivityItemSource/activityViewController(_:itemForActivityType:)), and return the data object’s UTI in [`activityViewController(_:dataTypeIdentifierForActivityType:)`](/documentation/UIKit/UIActivityItemSource/activityViewController(_:dataTypeIdentifierForActivityType:)). Also, you may need to register the appropriate mapping so that the MIME type can be determined.

---

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)