You are here

function CampaignMonitor::campaignSend in Campaign Monitor 5.2

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

*

Parameters

int $client_id The CampaignID you wish to use; set it to null to use the default class property: * @param string $confirmEmail (ConfirmationEmail) Email address to send confirmation of campaign send to * @param string $sendDate (SendDate) The timestamp to send the campaign. It must be formatted as YYY-MM-DD HH:MM:SS * and should correspond to user's timezone.

File

lib/CMBase.php, line 1342

Class

CampaignMonitor

Code

function campaignSend($campaign_id, $confirmEmail, $sendDate) {
  if ($campaign_id == null) {
    $campaign_id = $this->campaign_id;
  }
  return $this
    ->makeCall('Campaign.Send', array(
    'params' => array(
      'CampaignID' => $campaign_id,
      'ConfirmationEmail' => $confirmEmail,
      'SendDate' => $sendDate,
    ),
  ));
}