HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

setContent

Defines the content for a mailing of a specific MIME type in Optimizely Campaign.

See also validateContent.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
mimeTypeStringMIME type (text/plain or text/html) of the mailing
contentStringThe content of the mailing (HTML code or text)

Return values

  • Code structure

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

Did this page help you?