---
title: getOverallRecipientCount
slug: campaign/docs/getoverallrecipientcount-mailingreporting
docTags: 
createdAt: 2026-07-02T19:01:44.226Z
---

**Type**: int

**Parameters**

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

**Return values**

Number of recipients to which a mailing was sent or tried to send

Returns 0 if a mailing has not been started yet.

**Code structure**

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