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

listMemberDelete(string $id, string $email_address) : boolean
Input parametrs
Information obtained:
  • true, if request for deleting email has succeeded


 * This Example shows how to listMemberDelete using the MGAPI.php class and do some basic error checking.
require_once 'inc/MGAPI.class.php';
require_once 'inc/'; //contains apikey
$api = new MGAPI($apikey);
$id = $listId;
$email_address = $my_email;
$retval = $api->listMemberDelete($id, $email_address);
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load listMemberDelete()!\n";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Returned: " . $retval . "\n";

© 2010-2020 Mailigen. All rights reserved.