---
title: "Aspose::Email::Clients::Pop3::Pop3MessageInfoCollection::GetMessage method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.pop3/pop3messageinfocollection/getmessage/"
product: "Aspose.Email for C++"
description: "Gets the Pop3MessageInfo of the E-Mail message."
---


## GetMessage (1 of 2) {#getmessage_1}

Gets the Pop3MessageInfo of the E-Mail message.

**Returns:** Returns Pop3MessageInfo if exists, otherwise returns null.

```cpp
GetMessage(int32_t sequenceNumber)
```

| Parameter | Description |
| --- | --- |
| sequenceNumber | Sequence number of the E-Mail message. |

---

## GetMessage (2 of 2) {#getmessage_2}

Gets the Pop3MessageInfo of the E-Mail message.

**Returns:** Returns Pop3MessageInfo if exists, otherwise returns null.

```cpp
GetMessage(System::String uniqueId)
```

| Parameter | Description |
| --- | --- |
| uniqueId | Unique Id of the E-Mail message. |

