Mail::setAttachmentStorageType

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Mail
  4. setAttachmentStorageType
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/messagesender/sendfacilitator/mail.php
  • Класс: Bitrix\Crm\MessageSender\SendFacilitator\Mail
  • Вызов: Mail::setAttachmentStorageType
public function setAttachmentStorageType(int $storageTypeId): self
{
	static $supportedStorageTypes = [
		StorageType::File,
		// StorageType::Disk, //todo disk support requires more work
	];

	if (!in_array($storageTypeId, $supportedStorageTypes, true))
	{
		throw new ArgumentOutOfRangeException('storageTypeId', $supportedStorageTypes);
	}

	$this->storageTypeId = $storageTypeId;

	return $this;
}

Добавить комментарий