## Save(Stream, SaveOptions) {#save_1}

Saves the message to a stream in the format selected by the options, such as MSG, OFT, EML, EMLX, HTML or MHTML.

```csharp
public void Save(Stream stream, SaveOptions options)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The stream to write to. |
| options | SaveOptions | The options; their class selects the format. |

### See Also

* class [SaveOptions](../../../aspose.email/saveoptions/)
* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)

---

## Save(string) {#save_2}

Saves the message to a file in MSG format.

```csharp
public void Save(string fileName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String | The path of the file to write. |

### See Also

* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)

---

## Save(Stream) {#save}

Saves the message to a stream in MSG format.

```csharp
public void Save(Stream stream)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The stream to write to. |

### See Also

* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)

---

## Save(string, SaveOptions) {#save_3}

Saves the message to a file in the format selected by the options, such as MSG, OFT, EML, EMLX, HTML or MHTML.

```csharp
public void Save(string fileName, SaveOptions options)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String | The path of the file to write. |
| options | SaveOptions | The options; their class selects the format. |

### See Also

* class [SaveOptions](../../../aspose.email/saveoptions/)
* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)


