## MapiMessageReader class

Reads Outlook messages (MSG files) from a file or a stream.

```csharp
public sealed class MapiMessageReader : IDisposable
```

## Constructors

| Name | Description |
| --- | --- |
| [MapiMessageReader](mapimessagereader/#constructor)(Stream) | Initializes a new instance of the `MapiMessageReader` class that reads a stream. |
| [MapiMessageReader](mapimessagereader/#constructor_1)(string) | Initializes a new instance of the `MapiMessageReader` class that reads a file. |

## Methods

| Name | Description |
| --- | --- |
| [Dispose](../../aspose.email.mapi/mapimessagereader/dispose/)() | Releases the resources used by the reader. |
| [ReadAttachments](../../aspose.email.mapi/mapimessagereader/readattachments/)() | Reads the attachments of the message. |
| [ReadMessage](../../aspose.email.mapi/mapimessagereader/readmessage/)() | Reads the message. |

## Remarks

In most cases [`Load`](../mapimessage/load/) is simpler.

### See Also

* namespace [Aspose.Email.Mapi](../../aspose.email.mapi/)
* assembly [Aspose.Email](../../)


