Skip to content

mailings_id ​

php
boolean|array mailings_id (number|array $period)

Returns mailing IDs for the specified time range. A single numeric parameter returns IDs from $period to time(). An array, array($od,$do), returns IDs from that time range.

Example:

php
foreach (mailings_id(1) as $shipmentId) {
$shipmentInfo = mailing_info_get($shipmentId);
print($shipmentId.';'.$shipmentInfo['subject']."\n");
}

Result:

 2;Test mailing
 3;Another mailing