---
title: validateContent
slug: campaign/docs/validatecontent
docTags: 
createdAt: 2026-07-02T19:01:44.226Z
---

The content will be checked for syntax errors, missing field functions etc.

**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 |
| content   | String | The content of the mailing (HTML or text)          |

**Return values**

- OK if the syntax is correct
- WARNING: or ERROR: with a detailed error message

**Code structure**

```javascript
String validateContent(String sessionId, long mailingId, String mimeType, String content)
```
