You are here

function CampaignMonitor::subscriberAddAndResubscribe in Campaign Monitor 5.2

Same name and namespace in other branches
  1. 6.3 lib/CMBase.php \CampaignMonitor::subscriberAddAndResubscribe()
  2. 6.2 lib/CMBase.php \CampaignMonitor::subscriberAddAndResubscribe()

*

Parameters

string $email Email address.: * @param string $name User's name. * @param int $list_id (Optional) A valid List ID to check against. If not given, the default class property is used. * @see http://www.campaignmonitor.com/api/Subscriber.AddAndResubscribe.aspx

File

lib/CMBase.php, line 907

Class

CampaignMonitor

Code

function subscriberAddAndResubscribe($email, $name, $list_id = null) {
  return $this
    ->subscriberAdd($email, $name, $list_id, true);
}