---
title: getPredictedRecipientCount
slug: campaign/docs/getpredictedrecipientcount
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

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)
```
