---
title: MEEncodedOutgoingMessage
framework: mailkit
role: symbol
role_heading: Class
path: mailkit/meencodedoutgoingmessage
---

# MEEncodedOutgoingMessage

An object that contains the signed or encrypted representation of a message’s RFC 2822 data.

## Declaration

```swift
class MEEncodedOutgoingMessage
```

## Overview

Overview When MailKit invokes your message security handler’s encode(_:composeContext:completionHandler:) method, it digitally signs and encrypts the message. After encoding the message data, create an instance of MEEncodedOutgoingMessage to pass back to MailKit. Set the isSigned and isEncrypted values to indicate how you encoded the message.

## Topics

### Encoding Outgoing Messages

- [init(rawData:isSigned:isEncrypted:)](mailkit/meencodedoutgoingmessage/init(rawdata:issigned:isencrypted:).md)
- [isEncrypted](mailkit/meencodedoutgoingmessage/isencrypted.md)
- [isSigned](mailkit/meencodedoutgoingmessage/issigned.md)
- [rawData](mailkit/meencodedoutgoingmessage/rawdata.md)

### Initializers

- [init(coder:)](mailkit/meencodedoutgoingmessage/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Encrypting and Signing Messages

- [MEMessageEncoder](mailkit/memessageencoder.md)
- [MEOutgoingMessageEncodingStatus](mailkit/meoutgoingmessageencodingstatus.md)
- [MEMessageEncodingResult](mailkit/memessageencodingresult.md)
