Skip to content

Instantly share code, notes, and snippets.

@jeremiahmarks
Created November 13, 2015 00:57
Show Gist options
  • Save jeremiahmarks/f79a3a83d3e4c34abe79 to your computer and use it in GitHub Desktop.
Save jeremiahmarks/f79a3a83d3e4c34abe79 to your computer and use it in GitHub Desktop.
$returnFields = array('Email', 'EmailAddress2', 'EmailAddress3');
$conDat = $app->loadCon(41, $returnFields);
/*sorry I do not PHP, but you would want to loop through all of the returned addresses
and then opt each out ont, something like in sudo code*/
for eachemailaddress in $conDat:
$app->optOut(eachemailaddress,"Why they opted out");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment