---
title: getContent
slug: campaign/docs/getcontent-attachment
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**Type**: String

**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 |

**Return values**

Content of the mailing

**Code structure**

```javascript
String getContent(String sessionId, long mailingId, String mimeType)
```
