- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/sender/mail/consentbuildermail.php
- Класс: Bitrix\Sender\Integration\Sender\Mail\ConsentBuilderMail
- Вызов: ConsentBuilderMail::buildMessage
public function buildMessage(): array
{
['CONTACT_CODE' => $code, 'SITE_ID' => $siteId] = $this->fields;
$typeId = Recipient\Type::detect($code);
$code = Recipient\Normalizer::normalize($code, $typeId);
return [
"EVENT_NAME" => static::CONSENT_EVENT,
"C_FIELDS" => [
"EMAIL" => $code,
"SENDER_CONSENT_APPLY" => $this->buildLinkApply(),
"SENDER_CONSENT_REJECT" => $this->buildLinkReject(),
],
"LID" => is_array($siteId) ? implode(",", $siteId) : $siteId,
];
}