Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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)