public sendCampaign ( string $campaignId, string $confirmationEmail, string[optional] $deliveryDate = null ) : string | ||
$campaignId | string | The ID of the campaign to send. |
$confirmationEmail | string | The email address where the confirmation email will be sent to. |
$deliveryDate | string[optional] | |
return | string |
public function sendCampaign($campaignId, $confirmationEmail, $deliveryDate = null)
{
// set parameters
$parameters['ConfirmationEmail'] = (string) $confirmationEmail;
$parameters['SendDate'] = $deliveryDate;
// make the call
return $this->doCall('campaigns/' . $campaignId . '/send', $parameters, 'POST');
}