- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/ical/mailinvitation/sendereditinvitation.php
- Класс: BitrixCalendarICalMailInvitationSenderEditInvitation
- Вызов: SenderEditInvitation::getMailEventField
protected function getMailEventField(): array
{
return [
"=Reply-To" => "{$this->context->getAddresser()->getFullName()} <{$this->context->getAddresser()->getEmail()}>",
"=From" => "{$this->context->getAddresser()->getFullName()} <{$this->context->getAddresser()->getEmail()}>",
"=Message-Id" => $this->getMessageId(),
"=In-Reply-To" => $this->getMessageReplyTo(),
'EMAIL_FROM' => $this->context->getAddresser()->getEmail(),
'EMAIL_TO' => $this->context->getReceiver()->getEmail(),
'MESSAGE_SUBJECT' => $this->getSubjectMessage(),
'MESSAGE_PHP' => $this->getBodyMessage(),
'CONFIRM_CODE' => 'TRUE',
'NAME' => $this->event['NAME'],
'METHOD' => self::METHOD,
'CHANGE_FIELDS_TITLE' => $this->getChangeFieldsTitle(),
'DETAIL_LINK' => Helper::getDetailLink(
$this->getEventId(),
$this->getEventOwnerId(),
$this->getEventDateCreateTimestamp()
),
'DECISION_YES_LINK' => Helper::getPubEventLinkWithParameters(
$this->getEventId(),
$this->getEventOwnerId(),
$this->getEventDateCreateTimestamp(),
self::DECISION_YES
),
'DECISION_NO_LINK' => Helper::getPubEventLinkWithParameters(
$this->getEventId(),
$this->getEventOwnerId(),
$this->getEventDateCreateTimestamp(),
self::DECISION_NO
),
'CHANGE_DECISION_LINK' => Helper::getPubEventLinkWithParameters(
$this->getEventId(),
$this->getEventOwnerId(),
$this->getEventDateCreateTimestamp(),
self::DECISION_CHANGE
),
'REQUEST_DECISION' => $this->event['MEETING']['REINVITE'] ? 'Y' : 'N',
'DATE_FROM' => $this->event['DATE_FROM'],
'DATE_TO' => $this->event['DATE_TO'],
'TZ_FROM' => $this->event['TZ_FROM'],
'TZ_TO' => $this->event['TZ_TO'],
'FULL_DAY' => $this->event['SKIP_TIME'] ? 'Y' : 'N',
'CHANGE_FIELDS' => $this->getChangeFieldsString(),
];
}