---
title: "Aspose::Email::Storage::Pst::PersonalStorage::SaveMessageToStream method"
url: "https://reference.aspose.com/email/cpp/aspose.email.storage.pst/personalstorage/savemessagetostream/"
product: "Aspose.Email for C++"
description: "Saves the message, with specified entryID, to a stream."
---


## SaveMessageToStream {#savemessagetostream}

Saves the message, with specified entryID, to a stream.

**Returns:** void Aspose::Email::Storage::Pst::

```cpp
SaveMessageToStream(System::String entryId, System::SharedPtr < System::IO::Stream > stream)
```

| Parameter | Description |
| --- | --- |
| entryId | The entry id. |
| stream | The stream for writing. |

