Documentation

GetEmails

Description and parameters

array
CPosting::GetEmails(
 array post_arr
);

Method returns array with addresses to sent a subscription newsletter post. Non-static method.

Parameters

ParameterDescriptionAvailable from version
post_arr Array with all "Posting" object fields as sets of "field name" => "value".

Return values

Returns an array with unique email addresses. It includes

  • Subscriber addresses from subscription post categories with active and confirmed subscription as per subscription format and address filter.
  • Addresses of registered and active users belonging to groups with associated subscription post.
  • Addresses listed in the BCC_FIELD.

Examples

$post = CPosting::GetByID($ID);
if(($post_arr = $post->Fetch()))
    $aEmail = CPosting::GetEmails($post_arr);


© «Bitrix24», 2001-2024