---
title: encodedMessage
framework: mailkit
role: symbol
role_heading: Instance Property
path: mailkit/memessageencodingresult/encodedmessage
---

# encodedMessage

A signed or encrypted message, if the message security handler needs to encode the message.

## Declaration

```swift
@NSCopying var encodedMessage: MEEncodedOutgoingMessage? { get }
```

## Discussion

Discussion If the message security handler doesn’t need to apply security measures to the outgoing message, the value of this property is nil.

## See Also

### Providing an Encoding Result

- [init(encodedMessage:signingError:encryptionError:)](mailkit/memessageencodingresult/init(encodedmessage:signingerror:encryptionerror:).md)
- [encryptionError](mailkit/memessageencodingresult/encryptionerror.md)
- [signingError](mailkit/memessageencodingresult/signingerror.md)
