---
title: getMaxMailsPerHour
slug: campaign/docs/getmaxmailsperhour
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**Type**: int

**Parameters**

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

**Return values**

Maximum sending rate (emails per hour) of the mailing

**Code structure**

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