Description
Use this feature to analyze dispatches using transaction channels. You will get an overview about transaction mails sent and their delivery status. This evaluation can be done using a single or multiple channels. If you used campaign IDs while dispatching, these can be used for evaluation purposes in order to qualify statistics. Evaluation of transaction mail dispatches is based on a period of time to be evaluated.
Available starting from Backclick-Version: 5.8.4
In order to analyze transaction mail dispatch you have to provide the following information:
- Mandator ID
- API-Key (optional authentication, if not provided the IP address will be used for authentication)
- Channel IDs
- Period of time
- Campaign-IDs
Example
$client = new SoapClient($wsdlUrl);
date_default_timezone_set('Europe/Berlin');
$statistic = new StdClass();
$statistic->mandatorId = 0;
$statistic->channelIds = array();
array_push($statistic->channelIds, 1);
$statistic->timePeriod = new StdClass();
$statistic->timePeriod->startTime = mktime(11, 38, 0, 1, 1, 2012);
$statistic->timePeriod->endTime = mktime(12, 0, 0, 4, 31, 2013);
try {
$result = $client->transactionMailSendStatistic($statistic);
var_dump($result);
} catch (Exception $e) {
echo "Fehler aufgetreten: " . $e->getMessage() . "\r\n";
}
object(stdClass)#4 (1) {
["statistic"]=>
object(stdClass)#5 (1) {
["item"]=>
object(stdClass)#6 (9) {
["channel"]=>
object(stdClass)#7 (3) {
["channelId"]=>
int(1)
["channelName"]=>
string(9) "Channel 1"
["channelDescription"]=>
string(16) "Testbeschreibung"
}
["campaignId"]=>
string(0) ""
["numRecipients"]=>
int(23)
["numDelivered"]=>
int(23)
["numQueued"]=>
int(0)
["numErrorNoRelayServer"]=>
int(0)
["numErrorNoMailbox"]=>
int(0)
["numErrorTempServer"]=>
int(0)
["numErrorTemp"]=>
int(0)
}
}
}
Source code
In order to test a working example you can download the source code.
Example for evaluation of transaction mails
Â