addOptionFilenameEelExpression(); $this->addOptionsForAttachment(); parent::__construct($options); } protected function getAttachmentContent() { /** @noinspection MissUsingParentKeywordInspection */ return parent::render(); } protected function getAttachmentMimeType(): string { return 'text/plain'; } }