---
title: getPredictedRecipientCount
slug: campaign/dev-docs/getpredictedrecipientcount
createdAt: 2026-08-06T15:53:40.225Z
---

The mailing must be of type regular.

**Type**: int

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

Number of recipients that will receive the mailing once it is started

**Code structure**

```javascript
int getPredictedRecipientCount(String sessionId, long mailingId)
```
