You are here

function ConstantContact::remove in Constant Contact 6

Same name and namespace in other branches
  1. 5 ConstantContact.php \ConstantContact::remove()

Remove a subscriber from your constant contact account

* *

Parameters

string The email to unsubscribe: * @return bool true on success false on failure

File

./ConstantContact.php, line 175

Class

ConstantContact
Class to interact with the constant contact API This class enables you to easily subscribe and unsubscribe members

Code

function remove($email) {
  $email = urlencode(strip_tags($email));
  $data = 'loginName=' . $this
    ->getUsername();
  $data .= '&loginPassword=' . $this
    ->getPassword();
  $data .= '&ea=' . $email;
  return $this
    ->_send($data, $this->remove_subscriber_url);
}