HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

The mailing must be of the type regular.

See also [setMaxRecipientsPercentage](🔗).

**Type**: void


sessionIdStringID of the session
mailingIdlongID of the mailing
maxRecipientsintMaximum number of recipients<br><br>The value -1 means **All** (no maximum number of recipients set).
randomOrderboolean<ul><li><span class="classLib">true</span>: Recipients are selected on a random basis.</li>
<li><span class="classLib">false</span>: Recipients are selected by their ID starting with the lowest.</li></ul>

**Return values**: -

**Code structure**