• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/mailmanager.php
  • Класс: Bitrix\Crm\Integration\MailManager
  • Вызов: MailManager::compileReplyTo
static function compileReplyTo(?string $fromEmail): string
{
	$addresses = [];

	if (!empty($fromEmail))
	{
		$addresses[] = $fromEmail;
	}

	$crmEmail = self::getCrmEmail();
	if (!empty($crmEmail) && $fromEmail !== $crmEmail)
	{
		$addresses[] = $crmEmail;
	}

	return implode(', ', $addresses);
}