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

areBlacklisted

Queries whether multiple email addresses are blocked in Optimizely Campaign.

This method considers both exact matches (e.g., "[email protected]"), as well as wildcards (e.g., "*@example.com"). See also isBlacklisted.

Type: boolean[ ]

Parameters

NameTypeValue
sessionIdStringID of the session
emailAddressesString[ ]Email addresses to be queried

Return values

For each entry:

  • true: Email address is contained in the blocklist
  • false: Email address is not contained in the blocklist

Code structure

boolean[] areBlacklisted(String sessionId, String[] emailAddresses)