HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


You must invoke the [setContent](🔗) and [setSubject](🔗) etc. methods afterwards to create a valid and meaningful mailing. The following default values are assumed:

  • [**Content**](🔗): empty (text and HTML)

  • [**Subject**](🔗): empty

  • [**Open tracking**](🔗): disabled

  • [**Click tracking**](🔗): disabled

  • [**Attachments**](): none

**Type**: long

**Parameters**

NameTypeValue
sessionIdStringID of the session
mailingTypeStringType of the mailing  (regular, event, confirmation, template)
NameStringName of the mailing
mimeTypeStringMIME type of the mailing (text/plain, text/html, multipart/alternative)
recipientListIdslong[ ]IDs of the recipient lists used for the mailing
senderEmailPrefixStringThe given value is prefixed to the sending domain configured for this client.<br><br>Examples: info, newsletter or john.
senderNameStringName of the sender<br><br>Examples: My Company, John Doe, Newsletter
charsetStringCharacter set to be used for all contents (subject + body) in ISO names<br><br>If set to null, the client's default (usually ISO-8859-1) is used.

**Return values**

ID of the created mailing

**Code structure**