Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


Validates the content of a mailing in Optimizely Campaign.

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

Type: String


sessionIdStringID of the session
mailingIdlongID of the mailing
mimeTypeStringMIME type (text/plain or text/html) of the mailing
contentStringThe 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

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