---
title: "init(canSign:canEncrypt:securityError:addressesFailingEncryption:)"
framework: mailkit
role: symbol
role_heading: Initializer
path: "mailkit/meoutgoingmessageencodingstatus/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.

## Declaration

```swift
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.

## See Also

### Providing Encoding Status

- [canSign](mailkit/meoutgoingmessageencodingstatus/cansign.md)
- [canEncrypt](mailkit/meoutgoingmessageencodingstatus/canencrypt.md)
- [securityError](mailkit/meoutgoingmessageencodingstatus/securityerror.md)
- [addressesFailingEncryption](mailkit/meoutgoingmessageencodingstatus/addressesfailingencryption.md)
