listUnsubscribeSMS()

This function removes recipient phone number from existing list with all additional field values.

listSubscribeSMS(string $id, string $phone, array $merge_vars, boolean $update_existing) : boolean
Input parametrs
  • id - list ID
  • phone - phone number or ID (can be found by listMemberInfo function, see Obtaining additional email information)
  • delete_member - whether recipient is deleted from existing list (true, false) (optional). Default value is false.
  • send_notify - whether notification is sent to sender email which is indicated for a particular list (true, false) (optional). Default value is true.

Array of merge fields. Each merge field is represented as an array that includes:

  • true, if request for removing phone number has succeeded

Examples

mgapi_listUnsubscribeSMS.php
listUnsubscribeSMS($id, $phone, $delete_member, $send_notify);
 
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load listUnsubscribeSMS()!\n";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Returned: " . $retval . "\n";
}

© 2010-2017 Mailigen. All rights reserved.