- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/ical/mailinvitation/senderinvitation.php
- Класс: BitrixCalendarICalMailInvitationSenderInvitation
- Вызов: SenderInvitation::send
public function send(): bool
{
if ($this->event === null || $this->context === null)
{
return false;
}
$this->checkEventOrganizer();
$this->checkAddresserEmail();
$this->prepareEventFields();
$content = $this->getContent();
if (!$content)
{
return true;
}
$status = CEvent::sendImmediate(
self::MAIL_TEMPLATE,
SITE_ID,
$this->getMailEventField(),
"Y",
"",
[],
'',
$content
);
return $status === Event::SEND_RESULT_SUCCESS;
}