confirmEmailAdd
public static string confirmEmailAdd(string token , string targetEmailID)
Adding emails for confirmation.
Section
Security Related Methods

Parameters
string tokenYour Benchmark Email token
string targetEmailIDComma separated list of emails that need to be confirmed

Returns
stringReturns string output.


Examples
download example code
xmlrpc_confirmEmailAdd.php


  1. <?php
  2. /**
  3. This Example shows how to add emails for confirmation 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);
  10. // Comma seperated list of emails that need to be confirmed
  11. $targetEmailID = "validemail@domain.com,validemail2@domain.com";
  12. $retval = $client->confirmEmailAdd($token,$targetEmailID);
  13. print($retval);
  14. ?>