コード例 #1
0
/**
 * Remove an existing recipient from an email list.
 *
 * @param  Zend_Gdata_Gapps $gapps            The service object to use for communicating with the
 *                                            Google Apps server.
 * @param  boolean          $html             True if output should be formatted for display in a
 *                                            web browser.
 * @param  string           $recipientAddress The address of the recipient who should be removed.
 * @param  string           $emailList        The email list from which the recipient should be removed.
 * @return void
 */
function removeRecipientFromEmailList($gapps, $html, $recipientAddress, $emailList)
{
    if ($html) {
        echo "<h2>Unsubscribe Recipient</h2>\n";
    }
    $gapps->removeRecipientFromEmailList($recipientAddress, $emailList);
    if ($html) {
        echo "<p>Done.</p>\n";
    }
}