• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/usertype/mailsender.php
  • Класс: BitrixBizprocUserTypeMailSender
  • Вызов: MailSender::makeMailboxListSelectOptions
static function makeMailboxListSelectOptions(array $mailboxes)
{
	$options = [];
	foreach ($mailboxes as $mailbox)
	{
		$boxValue = sprintf(
			$mailbox['name'] ? '%s <%s>' : '%s%s',
			$mailbox['name'], $mailbox['email']
		);

		$options[$boxValue] = $boxValue;
	}

	return $options;
}