function MCAPI::campaignSendTest in Mailchimp 5.2
Same name and namespace in other branches
- 5 MCAPI.class.php \MCAPI::campaignSendTest()
- 6.2 MCAPI.class.php \MCAPI::campaignSendTest()
- 6 MCAPI.class.php \MCAPI::campaignSendTest()
- 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
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);
}