<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEMessage/rawData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MEMessage(py)rawData"
  },
  "title" : "rawData"
}
-->

# rawData

The raw RFC 2822 header and body content of the message.

```
var rawData: Data? { get }
```

## Discussion

The content is available after MailKit downloads the message. MailKit provides the content as unprocessed data. For details about the format of the data, see [RFC 2822](https://tools.ietf.org/html/rfc2822).

> Note:
> This property includes the full content of the message, and contains both the headers and the message body. If you only need the headers in the message, use ``doc://com.apple.mailkit/documentation/MailKit/MEMessage/headers`` instead.

---

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)