You are here

function MCAPI::campaignSendTest in Mailchimp 6

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. 7 MCAPI.class.php \MCAPI::campaignSendTest()

Send a test of this campaign to the provided email address

Related

@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 132

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