You are here

function MCAPI::campaignSendTest in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::campaignSendTest()
  2. 5 MCAPI.class.php \MCAPI::campaignSendTest()
  3. 6.2 MCAPI.class.php \MCAPI::campaignSendTest()
  4. 6 MCAPI.class.php \MCAPI::campaignSendTest()

Send a test of this campaign to the provided email address

Related

@example mcapi_campaignSendTest.php @example xml-rpc_campaignSendTest.php

Parameters

string $cid the id of the campaign to test:

array $test_emails an array of email address to receive the test message:

string $send_type optional by default (null) both formats are sent - "html" or "text" send just that format:

Return value

boolean true on success

File

./MCAPI.class.php, line 163

Class

MCAPI

Code

function campaignSendTest($cid, $test_emails = array(), $send_type = NULL) {
  $params = array();
  $params["cid"] = $cid;
  $params["test_emails"] = $test_emails;
  $params["send_type"] = $send_type;
  return $this
    ->callServer("campaignSendTest", $params);
}