---
title: setContent
slug: campaign/docs/setcontent-attachment
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

See also [validateContent](docId\:I7gBOo814o8PyYP_wt8QE).

**Type**: void

**Parameters**

| Name      | Type   | Value                                              |
| --------- | ------ | -------------------------------------------------- |
| sessionId | String | ID of the session                                  |
| mailingId | long   | ID of the mailing                                  |
| mimeType  | String | MIME type (text/plain or text/html) of the mailing |
| content   | String | The content of the mailing (HTML code or text)     |

**Return values**

- **Code structure**

```javascript
void setContent(String sessionId, long mailingId, String mimeType, String content)
```
