public static string autoresponderCreate (string token,array Autoresponder)
Create an Autoresponder campaign
Email Campaign Related Methods

string tokenA valid token for your account. To generate a token, use the login method.
array AutoresponderThe array containing the Autoresponder details.
string autoresponderNameThe autoresponder name
string contactListIDThe id of the contactlist associated with the autoresponder campaign
bool isSegmentWhether the associated list is a segment
string fromNameName displayed as "from" in your contact's in-box
string fromEmailEmail displayed as "from address" in your contact's in-box
bool webpageVersionoptional. Include a link to view a web version of the email. Defaults to false.
bool permissionReminderoptional. If this is specified as true then the permissionReminderMessage must be set
string permissionReminderMessageoptional. Permission reminder message text, this must be set if permissionReminder is enabled

stringReturns the ID of the recently created Autoresponder campaign

download example code

  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  11. $Autoresponder = array();
  12. $Autoresponder['autoresponderName'] = 'Autoresponder 1';
  13. $Autoresponder['contactListID'] = '11223';
  14. $Autoresponder['isSegment'] = false;
  15. $Autoresponder['fromName'] = 'Joe de maggio';
  16. $Autoresponder['fromEmail'] = '';
  17. $Autoresponder['webpageVersion'] = true;
  18. $Autoresponder['permissionReminder'] = true;
  19. $Autoresponder['permissionReminderMessage'] = 'Please click here to confirm, Confirm my subscription.';
  20. $flag = $client->autoresponderCreate($token,$Autoresponder);
  21. ?>