---
title: rawData
framework: mailkit
role: symbol
role_heading: Instance Property
path: mailkit/memessage/rawdata
---

# rawData

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

## Declaration

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

## Discussion

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. 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 headers instead.

## See Also

### Accessing Message Content

- [headers](mailkit/memessage/headers.md)
