confirmEmailAdd
public static string confirmEmailAdd(string token , string targetEmailID)
Adding emails for confirmation.
Parameters
|
string token | Your Benchmark Email token |
string targetEmailID | Comma separated list of emails that need to be confirmed |
Returns |
string | Returns string output. |
- <?php
- /**
- This Example shows how to add emails for confirmation using XML-RPC.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.php';
- $client = XML_RPC2_Client::create($apiURL);
- $token = $client->login($apiLogin, $apiPassword);
- // Comma seperated list of emails that need to be confirmed
- $targetEmailID = "validemail@domain.com,validemail2@domain.com";
- $retval = $client->confirmEmailAdd($token,$targetEmailID);
- print($retval);
- ?>