Back to Documentation Overview
campaignSendTest
public static campaignSendTest(string uid, string cid, array test_emails, string send_type)
Send a test of this campaign to the provided email address
- Section:
- Campaign Related
- Parameters:
uid the id for your user account. Get by calling login($user, $pass) cid the id for the campaign to test test_emails an array of email address to receive the test message send_type optional - default (null) sends both, "html" or "text" send just that format - Returns:
- boolean - true on success
- <?php
- /**
- This Example shows how to immediately Send a Test message for a prepared Campaign
- using the XML-RPC service and do some basic error checking.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- include('inc/config.inc.php'); //contains username & password
- $uuid = $client->login($username,$password);
- try {
- $result = $client->campaignSendTest($uuid, $campaignId, $emails, '');
- } catch (XML_RPC2_FaultException $e){
- }
- ?>
Examples (1)
download example code[1] xml-rpc_campaignSendTest.php
|
Add New Note
User Contributed Notes for
campaignSendTest |
|---|
| No notes, yet... Will you be the first?? |