Documentation

add

integer|null public static
\Bitrix\Sender\Subscription::add(
 string $email,
 array $mailingIdList
);

Creates subscription according to subscriber email and returns array with subscriptions list. Static method.

Parameters

ParameterDescriptionVersion
$emailEmail campaign
$mailingIdListArray with list of subscriptions. Array keys:
  • MAILING_ID - subscription ID;
  • CONTACT_ID - subscriber ID.

Example



© «Bitrix24», 2001-2024
Up