HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

addByMailId

Unsubscribes a recipient that belongs to a specific mail-ID in Optimizely Campaign.

The recipient is not removed from the recipient list (but will not receive any further mailings) until the remove method is invoked or the recipient re-subscribes using a normal opt-in process.

In addition to the add2 method, the mailing the recipient received before she/he unsubscribed will be preserved. See also MailIdWebservice.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mailIdStringID of the email

Return values

  • Code structure

    void addByMailId(String sessionId, String mailId)
    

What’s Next
Did this page help you?