• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/message.php
  • Класс: Bitrix\Mail\Message
  • Вызов: Message::__construct
public function __construct(array &$message, $type)
{
	$this->type = $type;

	$properties = array(
		'headers', 'subject', 'from', 'to',
		'text', 'html', 'attachments',
		'secret'
	);

	foreach ($properties as $property)
	{
		if (isset($message[$property]))
			$this->$property = $message[$property];
	}
}