<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEEncodedOutgoingMessage/init(rawData:isSigned:isEncrypted:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MEEncodedOutgoingMessage(im)initWithRawData:isSigned:isEncrypted:"
  },
  "title" : "init(rawData:isSigned:isEncrypted:)"
}
-->

# init(rawData:isSigned:isEncrypted:)

Creates an object that contains the outgoing message’s encoded data, and indicates if the encoder encrypted or signed the message.

```
init(rawData: Data, isSigned: Bool, isEncrypted: Bool)
```

## Parameters

`rawData`

The encrypted, signed, or both encrypted and signed message data.

`isSigned`

A Boolean value that indicates if the data contains a signed message.

`isEncrypted`

A Boolean value that indicates if the data contains an encrypted message.

## Discussion

---

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)