This function removes recipient email from Global Suppression List (GSL)

suppressedListUnsubscribe(string $email_address) : boolean
Emails suppressed only by you can be removed from GSL. This function will not work on emails that unsubscribed from all your listings by themselves.
Input parametrs
Information obtained
  • true, if request for removing email has succeeded


 * This Example shows how to suppressedListUnsubscribe 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);
$email_address = $my_email;
$retval = $api->suppressedListUnsubscribe($email_address);
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load suppressedListUnsubscribe()!\n";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Returned: " . $retval . "\n";

© 2010-2020 Mailigen. All rights reserved.