<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEOutgoingMessageEncodingStatus/init(canSign:canEncrypt:securityError:addressesFailingEncryption:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MEOutgoingMessageEncodingStatus(im)initWithCanSign:canEncrypt:securityError:addressesFailingEncryption:"
  },
  "title" : "init(canSign:canEncrypt:securityError:addressesFailingEncryption:)"
}
-->

# init(canSign:canEncrypt:securityError:addressesFailingEncryption:)

Creates an object that describes whether the message security handler can encrypt or sign an outgoing message.

```
init(canSign: Bool, canEncrypt: Bool, securityError: (any Error)?, addressesFailingEncryption: [MEEmailAddress])
```

## Parameters

`canSign`

A Boolean value that indicates the message security handler can digitally sign the outgoing message.

`canEncrypt`

A Boolean value that indicates the message security handler can encrypt the outgoing message.

`securityError`

An error that indicates a failure while determining the encoding status for the outgoing message.

`addressesFailingEncryption`

An array of email addresses that prevent the message security handler from signing the message.

---

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)