@@ 1199-1207 (lines=9) @@ | ||
1196 | * @param boolean $send_notify flag to send the unsubscribe notification email to the address defined in the list email notification settings, defaults to true |
|
1197 | * @return boolean true on success, false on failure. When using MCAPI.class.php, the value can be tested and error messages pulled from the MCAPI object (see below) |
|
1198 | */ |
|
1199 | function listUnsubscribe($id, $email_address, $delete_member=false, $send_goodbye=true, $send_notify=true) { |
|
1200 | $params = array(); |
|
1201 | $params["id"] = $id; |
|
1202 | $params["email_address"] = $email_address; |
|
1203 | $params["delete_member"] = $delete_member; |
|
1204 | $params["send_goodbye"] = $send_goodbye; |
|
1205 | $params["send_notify"] = $send_notify; |
|
1206 | return $this->callServer("listUnsubscribe", $params); |
|
1207 | } |
|
1208 | ||
1209 | /** |
|
1210 | * Edit the email address, merge fields, and interest groups for a list member |
|
@@ 1276-1284 (lines=9) @@ | ||
1273 | * @returnf integer error_count Number of email addresses that failed during addition/updating |
|
1274 | * @returnf array errors Array of error structs. Each error struct will contain "code", "message", and "email" |
|
1275 | */ |
|
1276 | function listBatchUnsubscribe($id, $emails, $delete_member=false, $send_goodbye=true, $send_notify=false) { |
|
1277 | $params = array(); |
|
1278 | $params["id"] = $id; |
|
1279 | $params["emails"] = $emails; |
|
1280 | $params["delete_member"] = $delete_member; |
|
1281 | $params["send_goodbye"] = $send_goodbye; |
|
1282 | $params["send_notify"] = $send_notify; |
|
1283 | return $this->callServer("listBatchUnsubscribe", $params); |
|
1284 | } |
|
1285 | ||
1286 | /** |
|
1287 | * Get all of the list members for a list that are of a particular status |