You are here

function CampaignMonitor::campaignSend in Campaign Monitor 6.3

Same name and namespace in other branches
  1. 5.2 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 1296

Class

CampaignMonitor
The new CampaignMonitor class that now extends from CMBase. This should be backwards compatible with the original (PHP5) version.

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,
    ),
  ));
}