public function listBatchUnsubscribe(string
$id,
array
$emails,
[boolean
$delete_member = false,
[boolean
$send_goodbye = true,
[boolean
$send_notify = false]]] )
Parameters
$id
—
string
the list id to connect to. Get by calling lists()
$emails
—
array
array of email addresses to unsubscribe
$delete_member
—
boolean
flag to completely delete the member from your list instead of just unsubscribing, default to false
$send_goodbye
—
boolean
flag to send the goodbye email to the email addresses, defaults to true
$send_notify
—
boolean
flag to send the unsubscribe notification email to the address defined in the list email notification settings, defaults to false
Returns
array
Array of result counts and any errors that occurred int success_count Number of email addresses that were succesfully added/updated
int error_count Number of email addresses that failed during addition/updating
array errors error data including:
string email address the email address in question
int code the error code
string message the full error message