Documentation

GetEmailStatuses

Description and parameters

array
CPosting::GetEmailStatuses(
 int ID
);

Method returns array with statuses in post queue to be dispatched. Array keys are statuses, and values are numbers of subscribers in corresponding statuses. Static method.

Parameters

Parameters Description Available from version
ID Post ID

Return value

Array with recipients distributed by statuses for dispatched subscription post. When recipients are missing in some of statuses, then a corresponding array element will be unavailable as well.

Permissible key values are:

  • "N" - email was sent successfully;
  • "E" - sent with error;
  • "Y" - awaits for dispatch.

See also

Examples

<?
$arStatuses = CPosting::GetEmailStatuses($ID);
if(!isset($arStatuses["Y"]))
echo "Post sent successfully.";
?>


© «Bitrix24», 2001-2024
Up