
## SubscribeFolder (1 of 2) {#subscribefolder_1}

Sent the SUBSCRIBE command that adds the specified mailbox name to the server's set of "active" mailboxes.

**Returns:** void Aspose::Email::Clients::Imap::

```cpp
SubscribeFolder(System::SharedPtr < IConnection > connection, System::String folderName)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| folderName | Name of the folder |

---

## SubscribeFolder (2 of 2) {#subscribefolder_2}

Sent the SUBSCRIBE command that adds the specified mailbox name to the server's set of "active" mailboxes.

**Returns:** void Aspose::Email::Clients::Imap::

```cpp
SubscribeFolder(System::String folderName)
```

| Parameter | Description |
| --- | --- |
| folderName | Name of the folder |

