HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


This method is only applicable to mailings of the type event.

Notes

  • If a target group is defined for the mailing, the mailing will be sent only if the recipient meets the target group criteria.

  • The actual mail is sent asynchronously. So, you should not delete the recipients immediately after invoking this method.

**Type**: int[ ]

**Parameters**

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
recipientListIdlongID of the recipient list<br><br>This recipient list must be assigned to the given mailing. See also [getRecipientListIds](🔗).
recipientIdsString[ ]IDs of the recipients

**Return values**

For each recipient:

  • 0: if the mail has been spooled

  • <![CDATA[ ]]>1: if the recipient is blocked

  • <![CDATA[ ]]>2: if the recipient is unsubscribed

  • <![CDATA[ ]]>3: if the recipient was not found

  • <![CDATA[ ]]>4: if the recipient list is invalid (the recipient list is not assigned to the given mailing)

  • <![CDATA[ ]]>5: if the recipient is blocked by the mailing's target group

  • <![CDATA[ ]]>6: if the recipient has caused too many bounces

**Code structure**