---
title: setSubject
slug: campaign/docs/setsubject
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: void

**Parameters**

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

**Return values**

- **Code structure**

```javascript
void setSubject(String sessionId, long mailingId, String subject)
```
